public static bool insertProject_Workers(APCEntities APCContext, Project project, Workers worker, DateTime startDate, DateTime endDate, decimal totalHours, decimal salary) { Project_Workers project_workers = new Project_Workers(); project_workers.Project = project; project_workers.Workers = worker; project_workers.StartDate = startDate; project_workers.EndDate = endDate; project_workers.TotalHours = totalHours; project_workers.Salary = salary; project_workers.TotalSalary = salary * totalHours; project_workers.Invoiced = false; APCContext.AddToProject_Workers(project_workers); APCContext.SaveChanges(); return(true); }
public static bool insertProject_Workers(APCEntities APCContext, Project project, Workers worker, DateTime startDate, DateTime endDate, decimal totalHours, decimal salary) { Project_Workers project_workers = new Project_Workers(); project_workers.Project = project; project_workers.Workers = worker; project_workers.StartDate = startDate; project_workers.EndDate = endDate; project_workers.TotalHours = totalHours; project_workers.Salary = salary; project_workers.TotalSalary = salary * totalHours; project_workers.Invoiced = false; APCContext.AddToProject_Workers(project_workers); APCContext.SaveChanges(); return true; }