Пример #1
0
        public ActionResult Create(Plantilla plantilla)
        {
            bool rptainsert = servicioPlantilla.Insertar(plantilla);

            if (rptainsert)
            {
                return(RedirectToAction("Index"));
            }
            return(View());
        }
Пример #2
0
 public ActionResult Post([FromBody] Plantilla plantilla)
 {
     servicioPlantilla.Insertar(plantilla);
     return(new CreatedAtRouteResult("GetPlantilla", new{ id = plantilla.CodPlantilla }, plantilla));
 }