C# Class Mictlanix.BE.Web.Controllers.Mvc.ProductsController

Inheritance: Mictlanix.BE.Web.Mvc.CustomController
显示文件 Open project: mictlanix/mbe

Public Methods

Method Description
Brands ( string pattern ) : System.Web.Mvc.JsonResult
Create ( ) : System.Web.Mvc.ActionResult
Delete ( int id ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
GetSuggestions ( string pattern ) : System.Web.Mvc.JsonResult
Index ( ) : System.Web.Mvc.ActionResult
Labels ( int id ) : System.Web.Mvc.ActionResult
Merge ( ) : System.Web.Mvc.ActionResult
Models ( string pattern ) : System.Web.Mvc.JsonResult
UnitsOfMeasurement ( ) : System.Web.Mvc.JsonResult
View ( int id ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
Create ( Product item ) : System.Web.Mvc.ActionResult
DeleteConfirmed ( int id ) : System.Web.Mvc.ActionResult
Edit ( Product item ) : System.Web.Mvc.ActionResult
HashFromImage ( Image img ) : string
HashFromStream ( Stream stream ) : string
Index ( Search search ) : System.Web.Mvc.ActionResult
Merge ( int product, int duplicate ) : System.Web.Mvc.ActionResult
SavePhoto ( System.Web.HttpPostedFileBase file ) : string
SearchProducts ( Search search ) : Search
SetLabels ( int id, int value ) : System.Web.Mvc.ActionResult
SetPhoto ( int id, System.Web.HttpPostedFileBase file ) : System.Web.Mvc.ActionResult

Method Details

Brands() public method

public Brands ( string pattern ) : System.Web.Mvc.JsonResult
pattern string
return System.Web.Mvc.JsonResult

Create() public method

public Create ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Delete() public method

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

Edit() public method

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

GetSuggestions() public method

public GetSuggestions ( string pattern ) : System.Web.Mvc.JsonResult
pattern string
return System.Web.Mvc.JsonResult

Index() public method

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

Labels() public method

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

Merge() public method

public Merge ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Models() public method

public Models ( string pattern ) : System.Web.Mvc.JsonResult
pattern string
return System.Web.Mvc.JsonResult

UnitsOfMeasurement() public method

public UnitsOfMeasurement ( ) : System.Web.Mvc.JsonResult
return System.Web.Mvc.JsonResult

View() public method

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