Exemplo n.º 1
0
        public ActionResult Create(BaseModel baseModel)
        {
            USAStateModel uSAStateModel = new USAStateModel();

            uSAStateModel.CopyBaseModel(baseModel);

            using (USAStateBAL uSAStateBAL = new USAStateBAL(ContextInfo))
            {
                uSAStateBAL.PrepareUSAStateModel(uSAStateModel);
            }

            return(View("Create", uSAStateModel));
        }
Exemplo n.º 2
0
        // GET: USAState/Edit/5
        public ActionResult Edit(string id, BaseModel baseModel)
        {
            USAStateModel uSAStateModel = new USAStateModel();

            uSAStateModel.CopyBaseModel(baseModel);
            uSAStateModel.Id = id;

            using (USAStateBAL uSAStateBAL = new USAStateBAL(ContextInfo))
            {
                uSAStateBAL.GetUSAStateModel(uSAStateModel);
                uSAStateBAL.PrepareUSAStateModel(uSAStateModel);
            }

            return(View(uSAStateModel));
        }