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); }
public void AddPatientIncome(Common.PatientsIncome patientsIncome) { this.Entities.PatientsIncomes.Add(patientsIncome); this.Entities.SaveChanges(); }
private void AddPatientIncomeToDatabase(Common.PatientsIncome patientIncome) { new DataLayer.PatientsHandler().AddPatientIncome(patientIncome); }