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)); }
// 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)); }