public IHttpActionResult DeleteEmployee(long id) { try { _employeeAppService.Delete(id, AuthHelper.GetCurrentUserId()); return(Ok("Employee Deleted")); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public IActionResult Delete(Guid id) { try { _empAppservice.Delete(id); return(Json(new { Result = "Success" })); } catch (Exception ex) { return(Json(new { Result = "Faild", Message = ex.Message })); } }
public async Task <IActionResult> Delete(int id) { var result = _service.Delete(id); return(await Response(result, result.Notifications)); }
public Task Delete(List <Guid> ids) { return(_employeeAppService.Delete(ids)); }