public IHttpActionResult GetAll() { LarderService larderService = CreateLarderService(); var larders = larderService.GetLarders(); return(Ok(larders)); }
private List <LarderListItem> GetLarderList() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new LarderService(userId); return(service.GetLarders().ToList()); }