Exemplo n.º 1
0
 public static bool insertClient(APCEntities APCContext, string name)
 {
     if (name.Trim() != "")
     {
         Client client = new Client();
         client.Name = name;
         APCContext.AddToClient(client);
         APCContext.SaveChanges();
         return true;
     }
     else
         return false;
 }
Exemplo n.º 2
0
 public static bool insertClient(APCEntities APCContext, string name)
 {
     if (name.Trim() != "")
     {
         Client client = new Client();
         client.Name = name;
         APCContext.AddToClient(client);
         APCContext.SaveChanges();
         return(true);
     }
     else
     {
         return(false);
     }
 }