예제 #1
0
        public async Task <IHttpActionResult> List([FromBody] FloorSearchParamViewModel searchParams)
        {
            var inParams = Mapper.Map <FloorSearchParams>(searchParams);
            var result   = await _floorService.List(inParams);

            var viewmodels = new List <FloorTrimViewModel>();

            foreach (var item in result)
            {
                viewmodels.Add(Mapper.Map <FloorTrimViewModel>(item));
            }

            return(Ok(viewmodels));
        }