public async Task <IActionResult> Edit(Int32 id, [Bind("IdRubroIngreso,Descripcion,IdRubroIngresoPadre, Gestion")] Models.Planificacion.RubroIngreso item)
        {
            if (id != item.IdRubroIngreso)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    DB.Update(item);
                    await DB.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ItemExists(item.IdRubroIngreso))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
            }
            return(PartialView("Edit", item));
        }
 public async Task <IActionResult> Create(Models.Planificacion.RubroIngreso item)
 {
     if (ModelState.IsValid)
     {
         //ApplicationUser currentUser = await GetCurrentUser();
         //item.IdUsuario = currentUser.AspNetUserId;
         item.Gestion             = "2019";
         item.IdRubroIngresoPadre = '1';
         item.FechaRegistro       = DateTime.Now;
         DB.Add(item);
         await DB.SaveChangesAsync();
     }
     return(PartialView("Create", item));
 }
        // GET: Planificacion/RubroIngreso/Create
        public IActionResult Create()
        {
            var model = new Models.Planificacion.RubroIngreso();

            return(PartialView("Create", model));
        }