コード例 #1
0
        public EmployeesVO Create(EmployeesVO employee)
        {
            var departamentEntity = _converter.Parse(employee);

            departamentEntity = _repository.Create(_converter.Parse(employee));
            return(_converter.Parse(departamentEntity));
        }
コード例 #2
0
        public EmployeesVO Update(EmployeesVO item)
        {
            var departamentntiry = _converter.Parse(item);

            departamentntiry = _repository.Update(_converter.Parse(item));

            return(_converter.Parse(departamentntiry));
        }
コード例 #3
0
        public IActionResult Put([FromBody] EmployeesVO employee)
        {
            if (employee == null)
            {
                return(BadRequest());
            }

            return(new ObjectResult(_employeesBusiness.Update(employee)));
        }