예제 #1
0
        public ActionResult Index()
        {
            ItemViewModel <IEnumerable <Meeting> > model = new ItemViewModel <IEnumerable <Meeting> >();

            model.Item = _meetingService.GetAll();
            return(View(model));
        }
예제 #2
0
        public HttpResponseMessage Get()
        {
            ItemsResponse <Meeting> response = new ItemsResponse <Meeting>();

            response.Items = _meetingsService.GetAll()
                             .OrderBy(o => o.Date).ThenBy(o => o.StartTime).ToList();
            return(Request.CreateResponse(response));
        }
예제 #3
0
        public async Task <IActionResult> GetAll()
        {
            var businessId = _contextService.GetBusinessId(HttpContext);

            try
            {
                var response = await _service.GetAll(businessId);

                return(Ok(response));
            }
            catch
            {
                return(StatusCode(500, "Internal Server Error."));
            }
        }
예제 #4
0
 public async Task <IActionResult> Index(string status = null)
 {
     ViewBag.status = status;
     return(View(await _meetingService.GetAll(HttpContext.Session.GetString("OrganizationNumber"), status)));
 }
        public IActionResult GetAll()
        {
            var meetings = _meetingService.GetAll();

            return(Ok(meetings));
        }
예제 #6
0
 public Task <IList <Meetings> > Get()
 {
     return(Task.FromResult(_meetingService.GetAll()));
 }