public async Task <ActionResult> Delete(Guid?id = null) { if (id.IsNull()) { return(RedirectToAction("Index", "Home")); } var user = await _userManager.FindByNameAsync(User.Identity.Name); var result = await _service.DeleteAsync(id.Value, user.Id, true); return(RedirectToAction("Index", "Home")); }