X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/9558b1720c211cc3e4987ab108149b52face4f7b..03228e59c2f1dbc18b8f404fee25234e554439be:/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; }