Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public bool Save()
 {
     return(context.SaveChanges() > 0);
 }