示例#1
0
        public ActionResult AddEditClient(int?clientId)
        {
            ClientViewModel objAddEdit = new ClientViewModel();

            objAddEdit.CargarDatos(clientId);
            trabajoparcialEntities context = new trabajoparcialEntities();

            objAddEdit.City = new SelectList(context.City, "cityId", "name");
            return(View(objAddEdit));
        }