Exemplo n.º 1
0
        public async Task <ActionResult> Create(BeerTypeCreate bc)
        {
            try
            {
                await ApiClient.PostAsync <BeerTypeCreate>(bc, "BeerTypes/");

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Exemplo n.º 2
0
        // GET: BeerType/Create
        public ActionResult Create()
        {
            BeerTypeCreate beer = new BeerTypeCreate();

            return(View(beer));
        }