C# Class Agribusiness.Web.Controllers.CommodityController

Inheritance: ApplicationController
Mostra file Open project: ucdavis/Agribusiness

Public Methods

Method Description
CommodityController ( IRepository commodityRepository ) : System
Create ( ) : System.Web.Mvc.ActionResult
Delete ( int id ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
Create ( Commodity commodity ) : System.Web.Mvc.ActionResult
Delete ( int id, Commodity commodity ) : System.Web.Mvc.ActionResult
Edit ( int id, Commodity commodity ) : System.Web.Mvc.ActionResult
TransferValues ( Commodity source, Commodity destination ) : void

Transfer editable values from source to destination. Use of AutoMapper is recommended

Method Details

CommodityController() public method

public CommodityController ( IRepository commodityRepository ) : System
commodityRepository IRepository
return System

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

Index() public method

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