Esempio n. 1
0
        public ActionResult Index()
        {
            this.LoadIsAdmin();
            var countries = BloodGroup.GetBloodGroups();
            int pageindex = 0;
            var filter    = countries.OrderBy(p => p.BloodGroupId).Skip(pageindex * PageSize).Take(PageSize);

            Session["users"]     = countries;
            Session["pageindex"] = 0;
            return(View("Index", filter));
        }
Esempio n. 2
0
        public ActionResult BasicDetails()
        {
            OrasModel        oras        = new OrasModel();
            CastContextModel objC        = new CastContextModel();
            ReligionModel    objReligion = new ReligionModel();
            CountryModel     objCountry  = new CountryModel();
            StateModel       objState    = new StateModel();
            BloodGroupModel  objB        = new BloodGroupModel();
            BasicResponse    response    = new BasicResponse()
            {
                CastData     = objC.GetCasts(),
                OrasData     = oras.GetOrass(),
                BloodGroup   = objB.GetBloodGroups(),
                CountryData  = objCountry.GetCountrys(),
                HeightData   = oras.GetHeights(),
                ReligionData = objReligion.GetReligions(),
                StateList    = objState.GetStates(),
            };

            return(Json(response, JsonRequestBehavior.AllowGet));
        }