Ejemplo n.º 1
0
        public void Delete([FromUri] int id)
        {
            EmployeeProjectDTO employeeProjectDTO = new EmployeeProjectDTO
            {
                Id = id
            };

            _employeeProjectService.Delete(employeeProjectDTO);
        }
Ejemplo n.º 2
0
        public bool Put([FromBody] EmployeeProjectDTO employeeProjectDTO)
        {
            if (employeeProjectDTO == null)
            {
                return(false);
            }

            _employeeProjectService.Update(employeeProjectDTO);
            return(true);
        }