public ViewResult Remove(int id)
        {
            BlogRepo.RemoveBlog(id);
            PublicUserRepo.RemoveById(id);
            List <PublicUser> users = PublicUserRepo.GetAllUsers();

            return(View("AdminDash", users));
        }
 public ViewResult Update(PublicUser pu)
 {
     if (ModelState.IsValid)
     {
         bool dummy = false;
         PublicUserRepo.RemoveById(pu.id);
         PublicUserRepo.SignUp(pu, ref dummy);
         List <PublicUser> users = PublicUserRepo.GetAllUsers();
         return(View("AdminDash", users));
     }
     else
     {
         ModelState.AddModelError(String.Empty, "Please enter correct data");
         return(View());
     }
 }