public ActionResult AddDrinksModal(int pantryId) { var model = new OfficeIngredientCommands().AddDrinkModal(pantryId); return(PartialView("_AddDrinksModal", model)); }
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)); }