本文整理汇总了C#中FlickrNet.Flickr.PeopleFindByEmail方法的典型用法代码示例。如果您正苦于以下问题:C# Flickr.PeopleFindByEmail方法的具体用法?C# Flickr.PeopleFindByEmail怎么用?C# Flickr.PeopleFindByEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FlickrNet.Flickr
的用法示例。
在下文中一共展示了Flickr.PeopleFindByEmail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadContent
//public ActionResult LoadContent(string dirName, string pageName)
//{
// var page = ContentService.GetPage(dirName, pageName);
// if (page == null) page = new Content();
// if (pageName == "index") return View("Index");
// else return View("Content", page);
//}
public ActionResult LoadContent(string pageName)
{
pageName = pageName.ToLower();
if (pageName == "index")
{
var im = new IndexModel();
var blm = new BlogListModel();
var posts = BlogService.GetLatestPosts(5);
blm.ListTitle = "NEWSFLASH";
blm.Posts = posts;
im.BlogList = blm;
return View(pageName, im);
}
else if (pageName == "juniors")
{
var jm = new JuniorsModel();
var blm = new BlogListModel();
var posts = BlogService.GetPostsByCategory("juniors");
blm.ListTitle = "JUNIORS UPDATES";
blm.Posts = posts;
jm.BlogList = blm;
return View(pageName, jm);
}
else if (pageName == "adults")
{
var am = new AdultsModel();
var blm = new BlogListModel();
var posts = BlogService.GetPostsByCategory("adults");
blm.ListTitle = "ADULTS UPDATES";
blm.Posts = posts;
am.BlogList = blm;
return View(pageName, am);
}
else if (pageName == "construction")
{
var cm = new ConstructionModel();
var blm = new BlogListModel();
var posts = BlogService.GetPostsByCategory("construction");
blm.ListTitle = "CONSTRUCTION UPDATES";
blm.Posts = posts;
cm.BlogList = blm;
return View(pageName, cm);
}
else if (pageName == "about-us")
{
var am = new AboutUsModel();
var blm = new BlogListModel();
var posts = BlogService.GetPostsByCategory("general");
blm.ListTitle = "CLUB NEWS";
blm.Posts = posts;
am.BlogList = blm;
return View(pageName, am);
}
else if (pageName == "gallery")
{
Flickr flickr = new Flickr(ConfigurationManager.AppSettings["FlickrKey"], ConfigurationManager.AppSettings["FlickrSecret"]);
FoundUser user = flickr.PeopleFindByEmail("[email protected]");
var photos = flickr.PhotosetsGetList(user.UserId);
foreach (var set in photos)
{
Response.Write(set.Title + "<br>");
}
return View(pageName);
}
else
{
return View(pageName);
}
}