コード例 #1
0
        public async Task <IHttpActionResult> Create([FromBody] FloorViewModel viewmodel)
        {
            var model  = Mapper.Map <Floor>(viewmodel);
            var result = await _floorService.Create(model);

            return(Ok(Mapper.Map <FloorViewModel>(result)));
        }