public ActionResult DeleteConfirmed(int id) { StudentReferralsModel studentReferralsModel = db.StudentReferralsModels.Find(id); db.StudentReferralsModels.Remove(studentReferralsModel); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID,ReportMonthID,AmericanIndianFemale,AmericanIndianMale,AsianFemale,AsianMale,BlackFemale,BlackMale,HispanicFemale,HispanicMale,MultiracialFemale,MultiracialMale,WhiteFemale,WhiteMale,AcademicPerformance,AbuseNeglectConsult,AdministrativeRequest,AlcoholDrugSubstanceAbuse,Attendance,BehaviorManagement,Bullying,CharacterDevelopment,ConflictResolution,DropoutPrevention,ECReferrals,EmergencyAssistance,HealthDental,Homelessness,MentalHealth,NeedsAssessment,SIT,SMOD,SocialServiceNeeds,SuspensionFollowup")] StudentReferralsModel studentReferralsModel) { if (ModelState.IsValid) { db.Entry(studentReferralsModel).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(studentReferralsModel)); }
// GET: StudentReferrals/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } StudentReferralsModel studentReferralsModel = db.StudentReferralsModels.Find(id); if (studentReferralsModel == null) { return(HttpNotFound()); } return(View(studentReferralsModel)); }