public object BindModel(ControllerContext controllerContext,
                                ModelBindingContext bindingContext)
        {
            HttpRequestBase request = controllerContext.HttpContext.Request;

            User obj = new User();

            obj.login = request.Form["login"];
            obj.password = request.Form["password"];
            obj.username= request.Form["username"];
            obj.company = request.Form["company"];

            //obj.UserAddress = new Address();
            //obj.UserAddress.Country = request.Form["UserAddress.Country"];
            //obj.UserAddress.City = request.Form["UserAddress.City"];

            return obj;
        }
        public ActionResult SaveUser(User user)
        {
            Boolean flag = UserDAL.SaveUser(user);

            if (flag == true)
                return RedirectToAction("Dashboard", "User");
            else
            {
                ViewBag.ErrMsg = "Some issue with data, Try again";
                return View("NewUser");
            }
        }
        public JsonResult SaveUserAjax(User user)
        {
            Boolean flag = UserDAL.SaveUser(user);

            return Json(new
            {
                success = true,
                message = "Successfully Saved"
            });
        }
        public ActionResult LoginVerify3(User user)
        {
            Boolean flag = BasicMVCApp.Models.UserDAL.Verify(user.login, user.password);

            if (flag == true)
                return RedirectToAction("Dashboard", "User");
            else
            {
                ViewBag.ErrMsg = "Invalid User Id/Password";
                return RedirectToAction("Login");
            }
        }