public async Task <IActionResult> Edit(string id, [Bind("Flat_ID,Flat_No,Floor,Block,FlatBuyDate,BHKs,CurrentStatus,FlatInchargeFirstName,FlatInchargeLastName,FlatInchargeContactNumber,FlatInchargeAlternateContactNumber,FlatInchargeEmail,AnnualMaintainaceCharges,OwnerID,Remarks")] FlatDetails flatDetails) { if (id != flatDetails.Flat_ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(flatDetails); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!FlatDetailsExists(flatDetails.Flat_ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(flatDetails)); }
public async Task <IActionResult> Edit(string id, [Bind("Resident_ID,Tran_ID,CreditRechargeDate,RechargeAmount,Remarks")] ResidentRechargeHistory residentRechargeHistory) { if (id != residentRechargeHistory.Resident_ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(residentRechargeHistory); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ResidentRechargeHistoryExists(residentRechargeHistory.Resident_ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(residentRechargeHistory)); }
public async Task <IActionResult> Edit(string id, [Bind("ServiceRequest_ID,HandyMan_ID,ServiceRequestImage,ServiceRequestDesc,ServiceRequestStatus,ServiceRequestStartDate,ServiceRequestEndDate,Remarks")] ServiceRequestChild serviceRequestChild) { if (id != serviceRequestChild.ServiceRequest_ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(serviceRequestChild); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ServiceRequestChildExists(serviceRequestChild.ServiceRequest_ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(serviceRequestChild)); }
public async Task <IActionResult> Edit(string id, [Bind("HandyMan_ID,VendorID,HandyMan_FirstName,HandyMan_LastName,PrimaryContactNo,SecondaryContactNo,Address,Gender,DOJ,DOR,Experties,Prvs_Org,Govt_ID_Proof,DocsSubmitted,Rating,Remarks,Photograph")] Vendors_HandyMan_Details vendors_HandyMan_Details) { if (id != vendors_HandyMan_Details.HandyMan_ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(vendors_HandyMan_Details); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Vendors_HandyMan_DetailsExists(vendors_HandyMan_Details.HandyMan_ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(vendors_HandyMan_Details)); }
public async Task <IActionResult> Edit(string id, [Bind("VendorID,VendorType,VendorName,VendorPhoto,VendorGps,ItemsAvailable,VendorContactNumber,VendorAlternateConatactNumber,VendorEmail,VendorAddress,Password,Hint,Remarks,Rating,Govt_ID_Proof")] VendorDetails vendorDetails) { if (id != vendorDetails.VendorID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(vendorDetails); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!VendorDetailsExists(vendorDetails.VendorID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(vendorDetails)); }
public async Task <IActionResult> Edit(string id, [Bind("AEID,Role,FirstName,LastName,Gendar,DOJ,DOR,Prvs_Org,Qualifications,DocsSubmitted,AE_WorkRating,LoginID,Password,LastLogin,Remarks")] ArjithaEmployees arjithaEmployees) { if (id != arjithaEmployees.AEID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(arjithaEmployees); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ArjithaEmployeesExists(arjithaEmployees.AEID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(arjithaEmployees)); }
public async Task <IActionResult> Edit(string id, [Bind("Resident_ID,Flat_ID,ResidentFirstName,ResidentLastName,ResidentPermanentAddress,ResidentContactNumber,Password,Hint,ResidentAlternateContactNumber,ServiceRequestCredits,ResidentGpsLocation,ResidentEmail,ResidentOccupancyDate,ResidentVacatedDate,ResidentEmploymentDetails,ResidentIdentityDetails,Remarks")] ResidentDetails residentDetails) { if (id != residentDetails.Resident_ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(residentDetails); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ResidentDetailsExists(residentDetails.Resident_ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(residentDetails)); }
public async Task <IActionResult> Edit(string id, [Bind("OwnerID,OwnerFirstName,OwnerLastName,OwnerAddress,OwnerContactNumber,OwnerAlternateContactNumber,OwnerEmail,Remarks")] FlatOwnerDetails flatOwnerDetails) { if (id != flatOwnerDetails.OwnerID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(flatOwnerDetails); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!FlatOwnerDetailsExists(flatOwnerDetails.OwnerID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(flatOwnerDetails)); }
public async Task <IActionResult> Edit(string id, [Bind("ServiceRequestID,IssueDescription,ServiceRequestSatus,ServiceRequestDate,Resident_ID,ServiceRequestHandlingStatus,ServiceRequestResolvedOn,ServiceRequestLastSeen,ServiceCharges,ServiceChargesPaid,PaymentDue,VendorID,QuoteID,Remarks")] ServiceRequest serviceRequest) { if (id != serviceRequest.ServiceRequestID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(serviceRequest); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ServiceRequestExists(serviceRequest.ServiceRequestID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(serviceRequest)); }