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))); }
public IActionResult GetAll() { var result = _segmentService.GetAll(); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }