public async Task <IActionResult> Delete(int id) { var update = await _countryManager.DeleteCountry(id); return(Ok(new ApiResponse <CountryModel>() { Data = update, Message = "Delete Successful", StatusCode = HttpStatusCode.OK })); }
public async Task <IActionResult> Delete(int id) { var update = await _countryManager.DeleteCountry(id); await _auditRepository.Add(new AuditModel { AuditType = "Delete Country", Description = User.Identity.Name + "Deleted Country", AuthUser = User.Identity.Name }); return(Ok(new ApiResponse <CountryModel>() { Data = update, Message = "Delete Successful", StatusCode = HttpStatusCode.OK })); }