コード例 #1
0
        public async Task <ActionResult> Delete(int id, RestaurantCategory cat)
        {
            try
            {
                await _proxy.DeleteRestaurantCategoryAsync(id);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(new HttpStatusCodeResult(HttpStatusCode.InternalServerError));
            }
        }