public static void Add(string firstName, string middleInitial, string lastName, DateTime dateOfBirth, string userName, bool isAdmin, List<int> roles)
        {
            using(UsersEntities context = new UsersEntities())
            {
                User user = new User()
                {
                    FirstName = firstName,
                    MiddleInitial = middleInitial,
                    LastName = lastName,
                    DateOfBirth = dateOfBirth,
                    UserName = userName,
                    IsAdmin = isAdmin,
                    Roles = context.Roles.Where(x=>roles.Contains(x.ID)).ToList()
                };

                context.Users.Add(user);
                context.SaveChanges();
            }
        }
 public ActionResult Add(User user)
 {
     UserManager.Add(user.FirstName, user.MiddleInitial, user.LastName, user.DateOfBirth, user.UserName, user.IsAdmin, new List<int>());
     return RedirectToAction("Index");
 }
 public ActionResult Add()
 {
     User user = new User();
     return View(user);
 }