public IHttpActionResult DeleteGender(long id) { try { _genderAppService.Delete(id, AuthHelper.GetCurrentUserId()); return(Ok("Gender Deleted")); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public async Task <ActionResult> Delete(int id) { await _genderAppService.Delete(id); return(RedirectToAction("Index")); }