public IHttpActionResult Put(EmployeeDetailModel EmployeeDetail) { try { if (EmployeeDetail == null) { return(BadRequest("EmployeeDetail cannot be null or empty.")); } _employeedetailService.Update(EmployeeDetail); return(Ok()); } catch (Exception ex) { throw new ArgumentException(ex.Message); } }