public ActionResult EnableUser(int id) { var banService = new BanService(); var result = banService.EnableUser(new EnableUserRequest { UserId = id }); SendAccountEnabledToUser(result.UserName, result.Email); return(RedirectToAction("Index")); }
public ActionResult EnableUser(int id) { var banService = new BanService(); var result = banService.EnableUser(new EnableUserRequest { UserId = id }); SendAccountEnabledToUser(result.UserName, result.Email); return(RedirectToAction("Index")); }