예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            StudentReferralsModel studentReferralsModel = db.StudentReferralsModels.Find(id);

            db.StudentReferralsModels.Remove(studentReferralsModel);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
 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));
 }
예제 #3
0
        // 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));
        }