Пример #1
0
        public async Task <ActionResult> Create([FromBody] CreateManagerDTO managerDTO)
        {
            Manager manager = _mapper.Map <Manager>(managerDTO);
            await _managerRepository.CreateAsync(manager);

            return(CreatedAtRoute("GetManagerById", new { manager.Id }, manager));
        }