public void Delete([FromUri] int id) { EmployeeProjectDTO employeeProjectDTO = new EmployeeProjectDTO { Id = id }; _employeeProjectService.Delete(employeeProjectDTO); }
public bool Put([FromBody] EmployeeProjectDTO employeeProjectDTO) { if (employeeProjectDTO == null) { return(false); } _employeeProjectService.Update(employeeProjectDTO); return(true); }