예제 #1
0
 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;
 }
예제 #2
0
 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);
     }
 }