C# Class BistroDriveWebApp.Controllers.ProfileController

Inheritance: Controller
显示文件 Open project: PI-13-5/BistroDriveWebApp

Public Methods

Method Description
Dish ( string id ) : System.Web.Mvc.ActionResult
DishInfo ( int id ) : System.Web.Mvc.ActionResult
Index ( string id ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
AddDish ( ) : System.Web.Mvc.ActionResult
AddDish ( DishViewModel model, System.Web.HttpPostedFileBase image ) : System.Web.Mvc.ActionResult
AddDishFeedback ( DishReviewViewModel model ) : System.Web.Mvc.ActionResult
AddDishFeedback ( int id ) : System.Web.Mvc.ActionResult
AddUserReview ( UserReviewViewModel model ) : System.Web.Mvc.ActionResult
AddUserReview ( string id ) : System.Web.Mvc.ActionResult
CloseOrder ( OrderDitailViewModel model ) : System.Web.Mvc.ActionResult
DeleteDish ( int id ) : System.Web.Mvc.ActionResult
DeleteDishReview ( int id ) : System.Web.Mvc.ActionResult
DeleteReview ( int id ) : System.Web.Mvc.ActionResult
EditDish ( DishViewModel model, System.Web.HttpPostedFileBase image ) : System.Web.Mvc.ActionResult
EditDish ( int Id ) : System.Web.Mvc.ActionResult
EditDishReview ( DishReviewViewModel model ) : System.Web.Mvc.ActionResult
EditDishReview ( int id ) : System.Web.Mvc.ActionResult
EditReview ( UserReviewViewModel model ) : System.Web.Mvc.ActionResult
EditReview ( int id ) : System.Web.Mvc.ActionResult
GetUser ( string userName = null ) : aspnetuser

Получение запрашиваемого пользователя, если запрос несуществующий возвратит Null

Order ( ) : System.Web.Mvc.ActionResult
OrderInfo ( int id = -1 ) : System.Web.Mvc.ActionResult
SaveFile ( System.Web.HttpPostedFileBase file, string folder, string old_file = null ) : string

Сохроняет файл с HttpPost потока

SetOrderStatus ( OrderDitailViewModel model ) : System.Web.Mvc.ActionResult

Method Details

Dish() public method

public Dish ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

DishInfo() public method

public DishInfo ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Index() public method

public Index ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult