예제 #1
0
        public IHttpActionResult GetAll()
        {
            LarderService larderService = CreateLarderService();
            var           larders       = larderService.GetLarders();

            return(Ok(larders));
        }
예제 #2
0
        private List <LarderListItem> GetLarderList()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new LarderService(userId);

            return(service.GetLarders().ToList());
        }