コード例 #1
0
ファイル: HomeController.cs プロジェクト: j-burrows/mailbox
 public ActionResult BlockedUser_Delete(DBlocked_User deleting)
 {
     string username = User.Identity.Name;
     HomeIndexViewModel model = new HomeIndexViewModel {
         emails = service.Email_GetByUser(username),
         blockedUsers = profiler.Blocked_User_Delete(deleting, username),
         friendedUsers = profiler.Friended_User_GetByUser(username),
         navSection = infastructure.PageStructure_GetBySelected(UrlPageIDs["~/friends"])
     };
     return View("Friends", model);
 }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: j-burrows/mailbox
 public ActionResult Email_Create(DEmail creating, string returnView="Create")
 {
     string username = User.Identity.Name;
     ViewData["returnView"] = returnView;
     HomeIndexViewModel model = new HomeIndexViewModel {
         emails = service.Email_Create(creating, username),
         blockedUsers = profiler.Blocked_User_GetByUser(username),
         friendedUsers = profiler.Friended_User_GetByUser(username),
         navSection = infastructure.PageStructure_GetBySelected(UrlPageIDs["~/create"])
     };
     return View(returnView, model);
 }