Пример #1
0
        public async Task <IActionResult> Put(SaveEnvironmentRequestDTO environmentDTO)
        {
            DB.Models.Environment environment = _mapper.Map <DB.Models.Environment>(environmentDTO);

            var res = _service.Edit(environment);

            if (res.IsSuccess)
            {
                return(Ok());
            }
            else
            {
                return(BadRequest(res.Errors));
            }
        }