示例#1
0
        public ActionResult AddDrinksModal(int pantryId)
        {
            var model = new OfficeIngredientCommands().AddDrinkModal(pantryId);

            return(PartialView("_AddDrinksModal", model));
        }
示例#2
0
        public JsonResult AddIngredientsToOffice(int milk, int sugar, int coffee, int officeId)
        {
            var success = new OfficeIngredientCommands().AddIngredientToOffice(sugar, coffee, milk, officeId);

            return(Json(new { success }, JsonRequestBehavior.AllowGet));
        }