public static void schimba_gen(CARTE c, GEN g) { c.GEN = g; c.GenId = g.GenId; context2.SaveChanges(); }
public static GEN get_gen_by_name(string name) { GEN gen = context2.GEN.FirstOrDefault(a => a.Descriere == name); return(gen); }
public static void adauga_gen(GEN g) { context2.GEN.Add(g); context2.SaveChanges(); }