Exemplo n.º 1
0
        public JsonResult DeleteEvents(int EventId)
        {
            EventService.Delete(EventId);
            var data = GenericMetodsservices.GetAdminEvents();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public JsonResult deletePosts(int Id)
        {
            UserPostService.Update(Id);
            var data = GenericMetodsservices.UserPostedFulldetailsforAdmin();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
        public JsonResult DeleteDonations(int DonationId)
        {
            Donationservice.Delete(DonationId);
            var data = GenericMetodsservices.GetAdminDonations();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 4
0
        public ActionResult EditTemplate()
        {
            TemplateModel Model = new TemplateModel()
            {
                GetTemplates = GenericMetodsservices.GetTemplates()
            };

            return(View(Model));
        }
Exemplo n.º 5
0
        public ActionResult SerachUsers()
        {
            DateTime CurrentDate             = DateTime.Now;
            int      Year                    = CurrentDate.Year;
            StudentRegistrationModel userdto = new StudentRegistrationModel()
            {
                Coursecategorys = GenericMetodsservices.GetAllCourseCategories(),
            };

            return(View(userdto));
        }
Exemplo n.º 6
0
        public ActionResult EditTemplate(TemplateModel Model, HttpPostedFileBase Image)
        {
            if (ModelState.IsValid)
            {
                var FilePath = "";
                if (Image != null)
                {
                    var fileName = Path.GetFileName(Image.FileName);
                    var path     = Path.Combine(Server.MapPath("~/UserProfilePictures/" + fileName));
                    Image.SaveAs(path);
                    FilePath = "/UserProfilePictures/" + fileName;
                }
                if (Model.Templateid != null)
                {
                    Custome_Templates custom = new Custome_Templates()
                    {
                        Heading     = Model.Heading,
                        Subject     = Model.Subject,
                        Description = Model.Description,
                        Status      = true,
                        createdOn   = DateTime.Now,
                        Images      = FilePath,
                        id          = Model.Templateid
                    };
                    TempData["Message"] = "Updated successfully...";
                    GenericMetodsservices.InsertTemplates(custom);
                }
                else
                {
                    Custome_Templates custom = new Custome_Templates()
                    {
                        Heading     = Model.Heading,
                        Subject     = Model.Subject,
                        Description = Model.Description,
                        Status      = true,
                        createdOn   = DateTime.Now,
                        Images      = FilePath
                    };
                    TempData["Message"] = "Saved successfully...";
                    GenericMetodsservices.InsertTemplates(custom);
                }

                return(RedirectToAction("EditTemplate", "Extras", new { Area = "Admin" }));
            }
            return(View());
        }
Exemplo n.º 7
0
        public JsonResult GetEventDetailsOnid(int EventId)
        {
            var data = GenericMetodsservices.GetUserEvents(EventId);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 8
0
 public ActionResult EventTypes(int Id)
 {
     ViewBag.Events = GenericMetodsservices.EventTypes(Id);
     return(View());
 }
Exemplo n.º 9
0
        public JsonResult GetEvents()
        {
            var data = GenericMetodsservices.GetAdminEvents();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 10
0
 public ActionResult EventDetails(int Id)
 {
     return(View(GenericMetodsservices.UserPostedFulldetails(Id).FirstOrDefault()));
 }
Exemplo n.º 11
0
        public JsonResult GetUserPosts()
        {
            var data = GenericMetodsservices.UserPostedFulldetailsforAdmin();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 12
0
        public JsonResult GetUserPostForAdmin()
        {
            var Data = GenericMetodsservices.UserPostedFulldetailsforAdminDashBorad().Take(10);

            return(Json(Data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 13
0
        public JsonResult GetDashboard(int Status)
        {
            var data = GenericMetodsservices.GetdashboardData();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 14
0
        public JsonResult GetTemplateonid(int id)
        {
            var Data = GenericMetodsservices.GetTmplatesonid(id);

            return(Json(Data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 15
0
        public JsonResult GetDonationDetailsOnid(int DonationId)
        {
            var data = GenericMetodsservices.GetUserDonations(DonationId);

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