Example #1
0
        public IActionResult Update(int id, ProjectTypesModel updateModel)
        {
            var projectTypesFromRepo = _services.GetByID(id);

            _mapper.Map(updateModel, projectTypesFromRepo);
            _services.Update(projectTypesFromRepo);
            _services.SaveChange();
            return(Ok(updateModel));
        }