public ActionResult Edit(int?id, int actiontype = 0)
        {
            UserProductViewModel userpor = new UserProductViewModel();

            ViewBag.actiontype = actiontype;
            if (actiontype == 1)
            {
                ViewData[EditFlag]  = true;
                userpor.ProductList = ProductModel.Fetch("");
                userpor.RoleList    = RoleModel.Fetch("");
                return(View(userpor));
            }
            userpor.ProductList     = ProductModel.Fetch("");
            userpor.UserProductList = UserProductModel.Fetch(" where userid = " + id);
            userpor.RoleList        = RoleModel.Fetch("");
            userpor.UserRoleList    = UserRoleModel.Fetch(" where userid = " + id);
            userpor.User            = UserModel.FirstOrDefault(" where id = " + id);
            ViewData[EditFlag]      = true;
            return(View(userpor));
        }