示例#1
0
        public JsonResult Religion(int?draw, int?start, int?length, List <Dictionary <string, string> > order, List <Dictionary <string, string> > columns)
        {
            var search        = Request["search[value]"];
            var dir           = order[0]["dir"].ToLower();
            var column        = columns[int.Parse(order[0]["column"])]["data"];
            var dataTableData = new ReligionRepository().GetPage(search, draw, start, length, dir, column);

            return(Json(dataTableData, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public ActionResult ReligionDetail(int?id)
        {
            ReligionViewModel model = new ReligionViewModel();

            if (id.HasValue)
            {
                model = new ReligionRepository().GetByID((int)id);
            }
            return(PartialView("_Religion", model));
        }
 public StudentBusinessLogic()
 {
     _StudentRepository                = S360RepositoryFactory.GetRepository("STUDENT") as StudentRepository;
     _SectionRepository                = S360RepositoryFactory.GetRepository("SECTION") as SectionRepository;
     _Standardpository                 = S360RepositoryFactory.GetRepository("STANDARD") as StandardRepository;
     _LanguageRepository               = S360RepositoryFactory.GetRepository("LANGUAGE") as LanguageRepository;
     _StudentCategoryRepository        = S360RepositoryFactory.GetRepository("STUDENTCATEGORY") as StudentCategoryRepository;
     _ReligionRepository               = S360RepositoryFactory.GetRepository("RELIGION") as ReligionRepository;
     _StudentAcademicRepository        = S360RepositoryFactory.GetRepository("STUDENTACADEMIC") as StudentAcademicRepository;
     _studentDetainPromotionRepository = S360RepositoryFactory.GetRepository("DETAINORPROMOTION") as StudentDetainPromotionRepository;
     _studentTCRepository              = S360RepositoryFactory.GetRepository("STUDENTTC") as StudentTCRepository;
 }
示例#4
0
        public JsonResult SaveReligion(ReligionViewModel model)
        {
            ResponseData result = new Models.ResponseData();

            if (model.RelD != 0)
            {
                result = new ReligionRepository().UpdateByEntity(model);
            }
            else
            {
                result = new ReligionRepository().AddByEntity(model);
            }

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
示例#5
0
 public ReligiousController()
 {
     _Manager  = new ReligiousFundRepository();
     _Manager1 = new ReligionRepository();
 }
示例#6
0
        public JsonResult DeleteReligion(int id)
        {
            var result = new ReligionRepository().RemoveByID(id);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
示例#7
0
 public StudentController(StudentRepository user, NationRepository nat, ReligionRepository rel)
 {
     studentRepository  = user;
     nationRepository   = nat;
     religionRepository = rel;
 }