示例#1
0
        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));
        }
示例#4
0
 public Task Delete(List <Guid> ids)
 {
     return(_employeeAppService.Delete(ids));
 }