public EmployeesVO Create(EmployeesVO employee) { var departamentEntity = _converter.Parse(employee); departamentEntity = _repository.Create(_converter.Parse(employee)); return(_converter.Parse(departamentEntity)); }
public EmployeesVO Update(EmployeesVO item) { var departamentntiry = _converter.Parse(item); departamentntiry = _repository.Update(_converter.Parse(item)); return(_converter.Parse(departamentntiry)); }
public IActionResult Put([FromBody] EmployeesVO employee) { if (employee == null) { return(BadRequest()); } return(new ObjectResult(_employeesBusiness.Update(employee))); }