Пример #1
0
        public async Task <IActionResult> Put([FromBody] ServiceApiModel service)
        {
            ServiceBlModel newService = await _serviceService.AddOrUpdateService(Mapper.Map <ServiceBlModel>(service));

            return(Ok(
                       Mapper.Map <ServiceApiModel>(newService)
                       ));
        }