Exemplo n.º 1
0
        public ActionResult WardsMaster()
        {
            WardsMasterData data = new WardsMasterData();

            data.Wards      = db.HSWards.OrderByDescending(e => e.Id).ToList();
            data.Buildings  = db.HSBuildings.ToList();
            data.Categories = db.HSWardCategories.ToList();
            return(View(data));
        }
Exemplo n.º 2
0
        public ActionResult BedsMaster()
        {
            var data = new WardsMasterData();

            data.Buildings = db.HSBuildings.Where(e => e.HSFloors.Count() > 0).ToList();
            //if(data.Buildings ==null || data.Buildings.Count() == 0)
            //{
            //    return RedirectToAction("") //create buildings
            //}
            return(View(data));
        }