public ActionResult Register(RegisterModel model)
        {
            if (ModelState.IsValid)
            {
                // Attempt to register the user
                MembershipCreateStatus createStatus = MembershipService.CreateUser(model.UserName, model.Password, model.Email);

                if (createStatus == MembershipCreateStatus.Success)
                {
                    FormsService.SignIn(model.UserName, false /* createPersistentCookie */);
                    DataBaseTableClassesDataContext db = new DataBaseTableClassesDataContext();
                    Employee e = new Employee();
                    e.Fname = model.UserName;
                    db.Employees.InsertOnSubmit(e);
                    db.SubmitChanges();
                    return RedirectToAction("Index", "Home");
                }
                else
                {
                    ModelState.AddModelError("", AccountValidation.ErrorCodeToString(createStatus));
                }
            }

            // If we got this far, something failed, redisplay form
            ViewData["PasswordLength"] = MembershipService.MinPasswordLength;
            return View(model);
        }
 partial void UpdateEmployee(Employee instance);
 partial void DeleteEmployee(Employee instance);
 partial void InsertEmployee(Employee instance);