X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/9558b1720c211cc3e4987ab108149b52face4f7b..e14129b280a195d697c51e68946a684c80afda40:/demo/src/Controlador/PlanesController.cs?ds=inline 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; }