public async Task <IActionResult> EditFamily(int RegNumber, [Bind("RegNumber,StdName,Sex,Dob,Religion,ParentsNamesF,OccupationF,QualificationF,ParentsNamesM,OccupationM,QualificationM,AnnualIncome,PresentClass,Address,Address1,City,State,PostalCode,StdCategory,Photo,EmailAddress,ColorHouse,Notes,Weight,PresentRollNo,Hphone,Mphone,Nationality,ConPhone,BoardNo,StdGenCategory,Aadhar")] Students students) { if (RegNumber != students.RegNumber) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(students); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!StudentsExists(students.RegNumber)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(students)); }
public async Task <IActionResult> Edit(int id, [Bind("AutoId,ClsFeeId,FeeNo,Caption,ForMonth,Amount,FeeCaption,PayByDate,ForClass,StdCategory,DueOn")] DynaFee dynaFee) { if (id != dynaFee.ClsFeeId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(dynaFee); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!DynaFeeExists(dynaFee.ClsFeeId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(dynaFee)); }
public async Task <IActionResult> Edit(int id, [Bind("SubId,SubName,SubCode,Clss,PrefTeacher,TeachId")] Subjects subjects) { if (id != subjects.SubAutoId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(subjects); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!SubjectsExists(subjects.SubAutoId)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(subjects)); }
public async Task <IActionResult> Edit(int id, [Bind("AutoId,StdCatId,StdCategory,LoginName")] StdCat stdCat) { if (id != stdCat.StdCatId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(stdCat); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!StdCatExists(stdCat.StdCatId)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(stdCat)); }
public async Task <IActionResult> Edit(int id, [Bind("ActivityName,ActivityValue,ActivityGroup,ActGroupId,ActivityRemarks,ActivityDate,SendSms,SendEmail,LoginName,Dormant,ModTime,CTerminal,DBid")] Activity activity) { if (id != activity.AutoId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(activity); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ActivityExists(activity.AutoId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(activity)); }
public async Task <IActionResult> Edit(int id, [Bind("FeeNameId,FeeCaption,FeeDuration,FeeType,FeeOrder,ShowIt")] Fcaption fcaption) { if (id != fcaption.FeeNameId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(fcaption); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!FcaptionExists(fcaption.FeeNameId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(fcaption)); }
public async Task <IActionResult> Edit(int id, [Bind("AutoId,TName,TTelephone,TeachLoginName,TeachEMail")] Teachers teachers) { if (id != teachers.AutoId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(teachers); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TeachersExists(teachers.AutoId)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(teachers)); }
public async Task <IActionResult> Edit(int id, [Bind("ConId,RegNum,StdName,Clss,RollNo,Gender,Parents,Address,UniReg,StopId,Stops,RouteId,DateFrom,DateTo")] Conveyance conveyance) { if (id != conveyance.ConId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(conveyance); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ConveyanceExists(conveyance.ConId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(conveyance)); }
public async Task <IActionResult> Edit(int id, [Bind("VehicleId,VehicleName,VehicleType,VDriver,VNumber,DriverAddress,DriverDetails,VehicleDetails,ContactPhone,Capacity,Circuit")] VehicleDescription vehicleDescription) { if (id != vehicleDescription.VehicleId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(vehicleDescription); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!VehicleDescriptionExists(vehicleDescription.VehicleId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(vehicleDescription)); }
public async Task <IActionResult> Edit(int id, [Bind("AccId,AccName,Type,Balance")] AccountHead accountHead) { if (id != accountHead.AccId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(accountHead); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AccountHeadExists(accountHead.AccId)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(accountHead)); }
public async Task <IActionResult> Edit(int id, [Bind(" ClsName,ClassTeacher,StdStrength,ClssNum")] Clss clss) { if (id != clss.AutoId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(clss); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ClssExists(clss.AutoId)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(clss)); }
public async Task <IActionResult> Edit(int id, [Bind("AutoId,StopId,ConveyanceMode,Stops1,Circuit,MonthlyFare,FareFromMonth")] Stops stops) { if (id != stops.stopId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(stops); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!StopsExists(stops.stopId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(stops)); }
public async Task <IActionResult> Edit(int id, [Bind("AutoId,ActGroupId,ActGroupName,IsReflectedInReportCard,ActGroupReportCard,ActGroupMotive,ActCode,GradeType,Clss,ActSn,ActClss,ActSession")] ActivityGroup activityGroup) { if (id != activityGroup.AutoId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(activityGroup); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ActivityGroupExists(activityGroup.AutoId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(activityGroup)); }