public ActionResult Create(Memo model, string[] agentes) { try { if (ModelState.IsValid) { model.AsignarId(); model.EstadoMemo = Rp3.AgendaComercial.Models.Constantes.EstadoMemo.Activo; model.EstadoMemoTabla = Rp3.AgendaComercial.Models.Constantes.EstadoMemo.Tabla; model.TipoMemoTabla = Rp3.AgendaComercial.Models.Constantes.TipoMemo.Tabla; model.ImportanciaTabla = Rp3.AgendaComercial.Models.Constantes.Importancia.Tabla; model.UsrIng = this.UserLogonName; model.FecIng = this.GetCurrentDateTime(); DataBase.Memos.Insert(model); DataBase.Save(); return(RedirectToAction("Index")); } } catch { this.AddDefaultErrorMessage(); } InicializarEdit(); return(View(model)); }