Ejemplo n.º 1
0
        private PageResult LoadPage(string returnUrl)
        {
            // create the model used by the partial page
            AddEditLoginTablePartialModel model = new AddEditLoginTablePartialModel();

            model.Operation = CrudOperation.Add;
            model.ReturnUrl = returnUrl;

            // assign values to the model used by this page
            PartialModel = model;

            // assign the return url
            ReturnUrl = returnUrl;

            return(Page());
        }
Ejemplo n.º 2
0
        public PageResult LoadPage(int id, string returnUrl)
        {
            // select a record by primary key(s)
            StudentEnquiryAPI.BusinessObject.LoginTable objLoginTable = LoginTable.SelectByPrimaryKey(id);

            // create the model used by the partial page
            AddEditLoginTablePartialModel model = new AddEditLoginTablePartialModel();

            model.Operation  = CrudOperation.Update;
            model.ReturnUrl  = returnUrl;
            model.LoginTable = objLoginTable;

            // assign values to the model used by this page
            PartialModel = model;

            // assign the return url
            ReturnUrl = returnUrl;

            return(Page());
        }