public ActionResult RejectRegistration(int id) { var user = DB.Account.Single(x => x.Id == id); user.EnabledEnum = UserStatus.Blocked; DB.SaveChanges(); Mails.RegistrationReject(user, Request.Form["reject-reason"]); SuccessMessage("Сохранено"); return(RedirectToAction("Index")); }