public AddBonoPage() { monedaService = new MonedasService(); bonosService = new BonosService(); GetMonedasAsync(); InitializeComponent(); BindingContext = this; }
public override ActionResult Create() { if (TempData["errors"] != null) { ModelState.AddModelError("", TempData["errors"].ToString()); } using (var service = new MonedasService(ContextService)) { var model = TempData["model"] == null?Helper.fModel.GetModel <MonedasModel>(ContextService) : TempData["model"] as MonedasModel; if (TempData["model"] == null) { model.Id = service.NextId(); } ((IToolbar)model).Toolbar = GenerateToolbar(service, TipoOperacion.Alta, model); return(View(model)); } }
public MonedasStartup(IContextService context, MarfilEntities db) { _context = context; _tablasVariasService = new MonedasService(context, db); }