Exemplo n.º 1
0
        public ActionResult <ProjectsDTO> Put([FromBody] ProjectsDTO projects)
        {
            var value   = _mapper.Map <Projects>(projects);
            var project = _projectsService.Atualizar(value);

            if (project != null)
            {
                var retorno = _mapper.Map <ProjectsDTO>(project);
                return(Ok(project));
            }
            else
            {
                return(NoContent());
            }
        }