Exemplo n.º 1
0
        public ActionResult Create(string editAction, string tablaId)
        {
            TablaDTO tablaDTO = new TablaDTO();

            switch (editAction)
            {
            case EditActionConstant.NEW:
                ViewBag.IsNew = true;
                break;

            case EditActionConstant.EDIT:
                ViewBag.IsNew = false;
                tablaDTO      = tablaService.GetById(Convert.ToInt32(tablaId));
                break;
            }
            return(PartialView(tablaDTO));
        }