Ejemplo n.º 1
0
 public ActionResult Rockstar(FormCollection collection)
 {
     string searchText = collection["SearchQuery"].ToString().ToLower();
     ProfileService svc = new ProfileService();
     List<RockstarProfile> model = svc.ProfileSearch(searchText);
     return View(model);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Rockstar View
 /// </summary>
 /// <returns></returns>
 public ActionResult Rockstar()
 {
     ProfileService svc = new ProfileService();
     List<RockstarProfile> model = svc.ReadAllProfiles();
     return View(model);
 }
Ejemplo n.º 3
0
 public ActionResult EditProfileEntry(RockstarProfile model, HttpPostedFileBase file, HttpPostedFileBase popupFile)
 {
     ProfileService svc = new ProfileService();
     svc.EditProfileRecord(model, file, popupFile);
     return Redirect("/Account/ProfileTool?GUID=" + AdminToolsGUID);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Delete profile entry view
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public ActionResult DeleteProfileEntry(int id)
 {
     ProfileService svc = new ProfileService();
     svc.DeleteBlogRecord(id);
     return Redirect("/Account/ProfileTool?GUID=" + AdminToolsGUID);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Edit profile entry view
 /// </summary>
 /// <param name="GUID"></param>
 /// <param name="Id"></param>
 /// <returns></returns>
 public ActionResult EditProfileEntry(string GUID, int Id)
 {
     if (!(String.IsNullOrEmpty(GUID)) && GUID.Equals(AdminToolsGUID))
     {
         ProfileService svc = new ProfileService();
         if (Id == 0)
         {
             return View();
         }
         else
         {
             RockstarProfile model = svc.ReadProfileByID(Id);
             return View(model);
         }
     }
     else
     {
         return Redirect("/Home/Index");
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Profile tool view
 /// </summary>
 /// <param name="GUID"></param>
 /// <returns></returns>
 public ActionResult ProfileTool(string GUID)
 {
     if (!(String.IsNullOrEmpty(GUID)) && GUID.Equals(AdminToolsGUID))
     {
         ProfileService svc = new ProfileService();
         List<RockstarProfile> model = svc.ReadAllProfiles();
         return View(model);
     }
     else
     {
         return Redirect("/Home/Index");
     }
 }