public AddBonoPage()
 {
     monedaService = new MonedasService();
     bonosService  = new BonosService();
     GetMonedasAsync();
     InitializeComponent();
     BindingContext = this;
 }
Exemplo n.º 2
0
        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));
            }
        }
Exemplo n.º 3
0
 public MonedasStartup(IContextService context, MarfilEntities db)
 {
     _context             = context;
     _tablasVariasService = new MonedasService(context, db);
 }