public ActionResult Details(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         return(RedirectToAction("Index", "Admin", null));
     }
     return(View(ManagerAdmin.DetailAdmin(id)));
 }
 public ActionResult DeleteAdmin(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         return(RedirectToAction("Index", "Admin", null));
     }
     ManagerAdmin.DelAdmin(id);
     return(RedirectToAction("Index", "Admin", null));
 }
 public ActionResult SaveAdmin(AdminEntity detail)
 {
     ManagerAdmin.SaveAdmin(detail);
     return(RedirectToAction("Index", "Admin", null));
 }
        // GET: Admin

        public ActionResult Index( )
        {
            return(View(ManagerAdmin.GetAdmins()));
        }