public JsonResult DeleteEvents(int EventId) { EventService.Delete(EventId); var data = GenericMetodsservices.GetAdminEvents(); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult deletePosts(int Id) { UserPostService.Update(Id); var data = GenericMetodsservices.UserPostedFulldetailsforAdmin(); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult DeleteDonations(int DonationId) { Donationservice.Delete(DonationId); var data = GenericMetodsservices.GetAdminDonations(); return(Json(data, JsonRequestBehavior.AllowGet)); }
public ActionResult EditTemplate() { TemplateModel Model = new TemplateModel() { GetTemplates = GenericMetodsservices.GetTemplates() }; return(View(Model)); }
public ActionResult SerachUsers() { DateTime CurrentDate = DateTime.Now; int Year = CurrentDate.Year; StudentRegistrationModel userdto = new StudentRegistrationModel() { Coursecategorys = GenericMetodsservices.GetAllCourseCategories(), }; return(View(userdto)); }
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()); }
public JsonResult GetEventDetailsOnid(int EventId) { var data = GenericMetodsservices.GetUserEvents(EventId); return(Json(data, JsonRequestBehavior.AllowGet)); }
public ActionResult EventTypes(int Id) { ViewBag.Events = GenericMetodsservices.EventTypes(Id); return(View()); }
public JsonResult GetEvents() { var data = GenericMetodsservices.GetAdminEvents(); return(Json(data, JsonRequestBehavior.AllowGet)); }
public ActionResult EventDetails(int Id) { return(View(GenericMetodsservices.UserPostedFulldetails(Id).FirstOrDefault())); }
public JsonResult GetUserPosts() { var data = GenericMetodsservices.UserPostedFulldetailsforAdmin(); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetUserPostForAdmin() { var Data = GenericMetodsservices.UserPostedFulldetailsforAdminDashBorad().Take(10); return(Json(Data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetDashboard(int Status) { var data = GenericMetodsservices.GetdashboardData(); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetTemplateonid(int id) { var Data = GenericMetodsservices.GetTmplatesonid(id); return(Json(Data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetDonationDetailsOnid(int DonationId) { var data = GenericMetodsservices.GetUserDonations(DonationId); return(Json(data, JsonRequestBehavior.AllowGet)); }