X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/9558b1720c211cc3e4987ab108149b52face4f7b..fc04c9fba5d70e3c4c35d2e8e505e7f2af29f9ca:/demo/src/Controlador/PlanesController.cs?ds=sidebyside diff --git a/demo/src/Controlador/PlanesController.cs b/demo/src/Controlador/PlanesController.cs index 16e6e25..26e8d45 100644 --- a/demo/src/Controlador/PlanesController.cs +++ b/demo/src/Controlador/PlanesController.cs @@ -26,6 +26,9 @@ public class PlanesController : Controller p.Descripcion = desc; p.PermanenciaMinima = permanencia; + AutoIncrementable c = new AutoIncrementable (); + p.Codigo = c.NextPlan (); + c.Dispose (); actual = p; return true; }