C# Class Informedica.GenForm.Mvc3.Controllers.ProductController

Inheritance: Controller
Exibir arquivo Open project: halcwb/GenForm Class Usage Examples

Public Methods

Method Description
AddNewBrand ( Newtonsoft.Json.Linq.JObject brandDto ) : System.Web.Mvc.ActionResult
AddNewPackage ( Newtonsoft.Json.Linq.JObject packageDto ) : System.Web.Mvc.ActionResult
AddNewShape ( Newtonsoft.Json.Linq.JObject shapeDto ) : System.Web.Mvc.ActionResult
AddNewSubstance ( SubstanceDto substanceDto ) : System.Web.Mvc.ActionResult
DeleteProduct ( String id ) : System.Web.Mvc.ActionResult
GetBrandNames ( ) : System.Web.Mvc.ActionResult
GetGenericNames ( ) : System.Web.Mvc.ActionResult
GetPackageNames ( ) : System.Web.Mvc.ActionResult
GetProducts ( ) : System.Web.Mvc.ActionResult
GetRouteNames ( ) : System.Web.Mvc.ActionResult
GetShapeNames ( ) : System.Web.Mvc.ActionResult
GetUnitNames ( ) : System.Web.Mvc.ActionResult
LoadProduct ( Int32 productId ) : IProduct
SaveProduct ( ProductDto product ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
AddNewUnit ( Newtonsoft.Json.Linq.JObject unitDto ) : System.Web.Mvc.ActionResult
GetBrandFromJObject ( Newtonsoft.Json.Linq.JObject brand ) : Brand
GetPackageFromJObject ( Newtonsoft.Json.Linq.JObject package ) : IPackage
GetProduct ( Newtonsoft.Json.Linq.JObject productId ) : System.Web.Mvc.ActionResult
GetShapeFromJObject ( Newtonsoft.Json.Linq.JObject shape ) : IShape
GetUnitFromJObject ( Newtonsoft.Json.Linq.JObject unit ) : IUnit

Method Details

AddNewBrand() public method

public AddNewBrand ( Newtonsoft.Json.Linq.JObject brandDto ) : System.Web.Mvc.ActionResult
brandDto Newtonsoft.Json.Linq.JObject
return System.Web.Mvc.ActionResult

AddNewPackage() public method

public AddNewPackage ( Newtonsoft.Json.Linq.JObject packageDto ) : System.Web.Mvc.ActionResult
packageDto Newtonsoft.Json.Linq.JObject
return System.Web.Mvc.ActionResult

AddNewShape() public method

public AddNewShape ( Newtonsoft.Json.Linq.JObject shapeDto ) : System.Web.Mvc.ActionResult
shapeDto Newtonsoft.Json.Linq.JObject
return System.Web.Mvc.ActionResult

AddNewSubstance() public method

public AddNewSubstance ( SubstanceDto substanceDto ) : System.Web.Mvc.ActionResult
substanceDto SubstanceDto
return System.Web.Mvc.ActionResult

DeleteProduct() public method

public DeleteProduct ( String id ) : System.Web.Mvc.ActionResult
id String
return System.Web.Mvc.ActionResult

GetBrandNames() public method

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

GetGenericNames() public method

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

GetPackageNames() public method

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

GetProducts() public method

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

GetRouteNames() public method

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

GetShapeNames() public method

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

GetUnitNames() public method

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

LoadProduct() public method

public LoadProduct ( Int32 productId ) : IProduct
productId System.Int32
return IProduct

SaveProduct() public method

public SaveProduct ( ProductDto product ) : System.Web.Mvc.ActionResult
product ProductDto
return System.Web.Mvc.ActionResult