Пример #1
0
        public void AddIncome(string incomeItems, Guid fsId)
        {
            DataLayer.PatientsHandler dap = new DataLayer.PatientsHandler();
            Common.PatientsIncome     pi  = new Common.PatientsIncome();

            pi.IncomeIdFk       = new Guid(incomeItems);
            pi.FamilySocialIdFk = fsId;
            pi.LogDate          = DateTime.Now;
            this.AddPatientIncomeToDatabase(pi);
        }
Пример #2
0
 public void AddPatientIncome(Common.PatientsIncome patientsIncome)
 {
     this.Entities.PatientsIncomes.Add(patientsIncome);
     this.Entities.SaveChanges();
 }
Пример #3
0
 private void AddPatientIncomeToDatabase(Common.PatientsIncome patientIncome)
 {
     new DataLayer.PatientsHandler().AddPatientIncome(patientIncome);
 }