예제 #1
0
        public ActionResult ManageDatapoint()
        {
            ViewBag.User = User.Identity.GetUserName();
            IQueryable <SegmentViewModel> sites = _segmentService.GetAll().Where(x => x.Active == true && x.Visible == true).OrderBy(x => x.SortOrder).AsQueryable();

            return(View(Tuple.Create(sites)));
        }
예제 #2
0
        public IActionResult GetAll()
        {
            var result = _segmentService.GetAll();

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }