public ActionResult ViewProfile(Models.User oUser)
        {
            string sTask = string.Empty;

            if (ModelState.IsValid)
            {
                int nStatus;
                if (oUser.MiddleName == null)
                {
                    oUser.MiddleName = "";
                }
                if (oUser.User_ID == 0)
                {
                    nStatus = oUser.InsertUpdateDeleteUser(oUser, "NEW");
                }
                else
                {
                    nStatus = oUser.InsertUpdateDeleteUser(oUser, "EDIT");
                }
                switch (nStatus)
                {
                case -1: ViewBag.Message = "User already exists";
                    break;

                case 0: ViewBag.Message = "User registerd successfully";
                    break;

                case 1: ViewBag.Message = "Error";
                    break;

                case 2: ViewBag.Message = "User profile updated successfully";
                    break;

                case 3: ViewBag.Message = "User deleted successfully";
                    break;
                }
                //if (oUser.InsertUpdateDeleteUser(oUser, "sTask") == 2)
                //{
                //    ViewBag.Message = "User profile updated successfully";
                //}
                //else
                //{
                //    ModelState.AddModelError("","Error in user profile update");
                //}
                ViewBag.RoleList = new SelectList(GetAllRoles(), "RoleID", "RoleName");
            }
            return(View(oUser));
        }