public async Task <IActionResult> Delete([Required] string id) { var result = await _services.DeleteAsync(id); if (result.IsValid) { await _systemAuditService.AuditAsync(User.GetEmail(), _accessor.GetIp(), Operations.Delete, Tables.GiftGrandChildrens); } return(Ok(result)); }
public async Task <IActionResult> DeleteConfirmed([Required] string hashId, [Required] string hashIdGrandChildren) { var result = await _services.DeleteAsync(hashId); if (result.IsValid) { await _systemAuditService.AuditAsync(User.GetEmail(), _accessor.GetIp(), Operations.Delete, Tables.GiftGrandChildrens); return(RedirectToAction("Index", new { id = hashIdGrandChildren })); } TempData["ErrorsList"] = result.ErrorsList; return(View()); }