public static void UpdateCurrentExpend(CurrentExpendsTable selectedCurrentExp, EmployeeTable selectedEmployee,
                                        string notes, string name, int cost,
                                        DateTime date, int active)
 {
     if (selectedEmployee != null)
     {
         selectedCurrentExp.EmployeeTable = selectedEmployee;
         selectedCurrentExp.employee_id   = selectedEmployee.Id;
     }
     selectedCurrentExp.notes  = notes;
     selectedCurrentExp.name   = name;
     selectedCurrentExp.cost   = cost;
     selectedCurrentExp.date   = date;
     selectedCurrentExp.active = active;
     db.SaveChanges();
 }
Exemplo n.º 2
0
 public static void UpdateCurrentExpend(CurrentExpendsTable selectedCurrentExp, EmployeeTable selectedEmployee,
                                        string notes, string name, int cost,
                                        DateTime date, int active)
 {
     DataLayer.UpdateCurrentExpend(selectedCurrentExp, selectedEmployee, notes, name, cost, date, active);
 }