public static bool insertProject(APCEntities APCContext, string name, Client client) { if (name.Trim() != "") { Project project = new Project(); project.Name = name; project.Client = client; APCContext.AddToProject(project); APCContext.SaveChanges(); return true; } else return false; }
public static bool insertProject(APCEntities APCContext, string name, Client client) { if (name.Trim() != "") { Project project = new Project(); project.Name = name; project.Client = client; APCContext.AddToProject(project); APCContext.SaveChanges(); return(true); } else { return(false); } }