public void SaveLeaveRequest(LeaveRequestInfo leaveRequestInfo) { Data.LeaveRequest leaveRequest = ConvertToDb(leaveRequestInfo); _context.LeaveRequests.Add(leaveRequest); _context.SaveChanges(); }
public void SaveMedicalAllowance(MedicalAllowanceInfo medicalAllowanceInfo) { Data.MedicalAllowance medicalAllowance = ConvertToDb(medicalAllowanceInfo); _context.MedicalAllowances.Add(medicalAllowance); _context.SaveChanges(); }
public void SaveSalary(SalaryInfo salaryInfo) { Data.Salary salary = ConvertToDb(salaryInfo); _context.Salaries.Add(salary); _context.SaveChanges(); }
public void SavePhoto(PhotoInfo photoInfo) { Data.Photo photo = ConvertToDb(photoInfo); _context.Photos.Add(photo); _context.SaveChanges(); }
public void SaveMedicalPrescription(MedicalPrescriptionInfo medicalPrescriptionInfo) { Data.MedicalPrescription medicalPrescription = ConvertToDb(medicalPrescriptionInfo); _context.MedicalPrescriptions.Add(medicalPrescription); _context.SaveChanges(); }
public void SaveFamilyMember(FamilyMemberInfo familyMemberInfo) { Data.FamilyMember familyMember = ConvertToDb(familyMemberInfo); _context.FamilyMembers.Add(familyMember); _context.SaveChanges(); }
public void SavePayslip(PaySlipInfo paySlipInfo) { Data.PaySlip payslip = ConvertToDb(paySlipInfo); _context.PaySlips.Add(payslip); _context.SaveChanges(); }
public void SaveAnnouncement(AnnouncementInfo announcementInfo) { Data.Announcement announcement = ConvertToDb(announcementInfo); _context.Announcements.Add(announcement); _context.SaveChanges(); }
public void SaveLeaveAllowed(LeaveAllowedInfo leaveAllowedInfo) { Data.LeaveAllowed leaveAllowed = ConvertToDb(leaveAllowedInfo); _context.LeaveAlloweds.Add(leaveAllowed); _context.SaveChanges(); }
public void SaveAlbum(AlbumInfo albumInfo) { Data.Album album = ConvertToDb(albumInfo); _context.Albums.Add(album); _context.SaveChanges(); }
public void SaveAccountConfirmation(AccountConfirmationInfo accountConfirmationInfo) { Data.AccountConfirmation accountConfirmation = ConvertToDb(accountConfirmationInfo); _context.AccountConfirmations.Add(accountConfirmation); _context.SaveChanges(); }
public int SaveAccountCheckList(AccountCheckListInfo accountCheckListInfo) { Data.AccountCheckList accountCheck = ConvertToDb(accountCheckListInfo); _context.AccountCheckLists.Add(accountCheck); _context.SaveChanges(); return(accountCheck.Id); }
public int SaveEmployeeInfo(Model.EmployeeInfo employeeInfo) { Data.EmployeeInfo empInfo = ConvertToDb(employeeInfo); _context.EmployeeInfoes.Add(empInfo); _context.SaveChanges(); return(empInfo.Id); }
public int SaveDocument(DocumentInfo documentInfo) { Data.Document document = ConvertToDb(documentInfo); _context.Documents.Add(document); _context.SaveChanges(); return(document.Id); }
public int SaveMedicalCheckout(MedicalCheckoutInfo medicalCheckoutInfo) { Data.MedicalCheckout medicalCheckout = ConvertToDb(medicalCheckoutInfo); _context.MedicalCheckouts.Add(medicalCheckout); _context.SaveChanges(); return(medicalCheckout.Id); }
public void SaveLeave(LeaveInfo leaveInfo) { Data.Leave leave = ConvertToDb(leaveInfo); _context.Leaves.Add(leave); _context.SaveChanges(); }
public void ChangeNewPassword(AccountInfo accountInfo) { Data.Account account = _context.Accounts.Find(accountInfo.Id); if (account != null) { account.PasswordHash = accountInfo.PasswordHash; account.Salt = accountInfo.Salt; account.IsFirstTimeLogin = accountInfo.IsFirstTimeLogin; _context.SaveChanges(); } else { throw new ArgumentNullException(); } }
public void AddEmployeeInfo(PersonalInfo obj) { db.PersonalInfoes.Add(obj); db.SaveChanges(); }