Example #1
0
 public void edit(clientTable clientData)
 {
     var result = getById(clientData.clientsId);
     result.firstName = clientData.firstName;
     result.secondName = clientData.secondName;
     result.lastName = clientData.lastName;
     result.birthday = clientData.birthday;
     result.sex = clientData.sex;
     result.passportSeria = clientData.passportSeria;
     result.passportNumber = clientData.passportNumber;
     result.issuedBy = clientData.issuedBy;
     result.dateOfIssue = clientData.dateOfIssue;
     result.passportId = clientData.passportId;
     result.birthPlace = clientData.birthPlace;
     result.townLiving = clientData.townLiving;
     result.addressLiving = clientData.addressLiving;
     result.homePhone = clientData.homePhone;
     result.mobilePhone = clientData.mobilePhone;
     result.email = clientData.email;
     result.workPlace = clientData.workPlace;
     result.workPosition = clientData.workPosition;
     result.registrationTown = clientData.registrationTown;
     result.registrationAddress = clientData.registrationAddress;
     result.maritialStatus = clientData.maritialStatus;
     result.citizenship = clientData.citizenship;
     result.invalid = clientData.invalid;
     result.pensioner = clientData.pensioner;
     result.monthIncome = clientData.monthIncome;
     result.reservist = clientData.reservist;
     db.SubmitChanges();
 }
Example #2
0
 public ActionResult edit(clientTable clientData)
 {
     if (ModelState.IsValid)
     {
         repository.edit(clientData);
         return RedirectToAction("Index");
     }
     return View();
 }
Example #3
0
 public ActionResult AddPanel(clientTable client)
 {
     if (ModelState.IsValid)
     {
         repository.insert(client);
         return RedirectToAction("Index");
     }
     return View();
 }
Example #4
0
 public void insert(clientTable client)
 {
     db.clientTable.InsertOnSubmit(client);
     db.SubmitChanges();
 }
Example #5
0
 partial void DeleteclientTable(clientTable instance);
Example #6
0
 partial void UpdateclientTable(clientTable instance);
Example #7
0
 partial void InsertclientTable(clientTable instance);