Ejemplo n.º 1
0
        public ActionResult Index()
        {
            ItemViewModel <IEnumerable <Meeting> > model = new ItemViewModel <IEnumerable <Meeting> >();

            model.Item = _meetingService.GetAll();
            return(View(model));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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."));
            }
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 6
0
 public Task <IList <Meetings> > Get()
 {
     return(Task.FromResult(_meetingService.GetAll()));
 }