public ActionResult ShowAllSections()
        {
            AllSectionsViewModel sections = new AllSectionsViewModel()
            {
                SectionId = 0,
                Sections  = sectionService.GetAllSectionEntities()
            };

            return(PartialView("ShowAllSections", sections));
        }
        public ActionResult AllLots()
        {
            ViewBag.Sections = _sectionService.GetAllSectionEntities()
                               .Select(s => s.ToSectionDetailsModel()).Where(s => s.Categories.Count != 0);
            var lots = _lotService.GetActiveLots()
                       //GetAllLotEntities().Where(l => l.IsConfirm && !l.IsBlocked)
                       .Select(l => l.ToLotRowViewModel()).OrderByDescending(lot => lot.StartDate);

            return(View(lots));
        }
        public ActionResult Sections()
        {
            var sections = _sectionService.GetAllSectionEntities()
                           .Where(s => s.ModeratorLogin == User.Identity.Name)
                           .Select(s => s.ToSectionDetailsModel()).ToList();

            return(View(sections));
        }
        public ActionResult AllSections()
        {
            var sections = service.GetAllSectionEntities().Select(section => section.ToModelSection());

            return(PartialView("_AllSections", sections));
        }
Exemple #5
0
 public ActionResult Index()
 {
     return(View(sectionService.GetAllSectionEntities().Select(section => section.ToMvcSection())));
 }
        public JsonResult IsSectionNameAvailable(string sectionName, int Id)
        {
            var section = _sectionService.GetAllSectionEntities().FirstOrDefault(s => s.SectionName == sectionName);

            return(Json(!(section != null && section.Id != Id), JsonRequestBehavior.AllowGet));
        }
        public ActionResult GetAllSections()
        {
            var sections = _sectionService.GetAllSectionEntities().Select(s => s.ToSectionDetailsModel());

            return(View(sections));
        }