public IHttpActionResult GetWonLots() { var id = userService.GetUserByName(User.Identity.Name).Id; try { var lots = lotService.GetWonLots(id); return(Ok(Mapper.Map <IEnumerable <LotDTO>, List <LotModel> >(lots))); } catch (NotFoundException) { return(NotFound()); } }