public async Task <IHttpActionResult> SocietyWiseList([FromBody] FloorSearchParamViewModel searchParams) { var inParams = Mapper.Map <FloorSearchParams>(searchParams); var result = await _floorService.SocietyWiseList(inParams); var viewmodels = new List <FloorTrimViewModel>(); foreach (var item in result) { viewmodels.Add(Mapper.Map <FloorTrimViewModel>(item)); } return(Ok(viewmodels)); }