public static void AddArif() { Employee e = new Employee() { FirstName = "Arif", LastName = "Mahmic", Email = "*****@*****.**", Position = context.Roles.Find("A"), Password = "******" }; context.Employees.Add(e); context.SaveChanges(); }
public bool Save() { return(context.SaveChanges() > 0); }