C# Class Cats.Areas.Settings.Controllers.CommodityTypeController

Inheritance: Controller
Show file Open project: edgecomputing/cats

Public Methods

Method Description
CommodityTypeController ( ICommodityTypeService commodityTypeService, IUserProfileService userProfileService ) : System
Create ( ) : System.Web.Mvc.ActionResult
CreateJson ( [ request, CommodityTypeViewModel viewModel ) : System.Web.Mvc.ActionResult
Delete ( int id ) : System.Web.Mvc.ActionResult
DeleteJson ( [ request, CommodityTypeViewModel viewModel ) : System.Web.Mvc.ActionResult
Details ( int id ) : System.Web.Mvc.ViewResult
Edit ( int id ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ViewResult
ReadAllJson ( [ request ) : System.Web.Mvc.ActionResult
Update ( ) : System.Web.Mvc.ActionResult
UpdateJson ( [ request, CommodityTypeViewModel viewModel ) : System.Web.Mvc.ActionResult
toViewModelCollection ( List ermodel ) : IEnumerable

Private Methods

Method Description
Create ( CommodityType commoditytype ) : System.Web.Mvc.ActionResult
DeleteConfirmed ( int id ) : System.Web.Mvc.ActionResult
Edit ( CommodityType commoditytype ) : System.Web.Mvc.ActionResult
_GetCommodityTypes ( ) : System.Web.Mvc.ActionResult

Method Details

CommodityTypeController() public method

public CommodityTypeController ( ICommodityTypeService commodityTypeService, IUserProfileService userProfileService ) : System
commodityTypeService ICommodityTypeService
userProfileService IUserProfileService
return System

Create() public method

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

CreateJson() public method

public CreateJson ( [ request, CommodityTypeViewModel viewModel ) : System.Web.Mvc.ActionResult
request [
viewModel Cats.Areas.Settings.Models.ViewModels.CommodityTypeViewModel
return System.Web.Mvc.ActionResult

Delete() public method

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

DeleteJson() public method

public DeleteJson ( [ request, CommodityTypeViewModel viewModel ) : System.Web.Mvc.ActionResult
request [
viewModel Cats.Areas.Settings.Models.ViewModels.CommodityTypeViewModel
return System.Web.Mvc.ActionResult

Details() public method

public Details ( int id ) : System.Web.Mvc.ViewResult
id int
return System.Web.Mvc.ViewResult

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.ViewResult
return System.Web.Mvc.ViewResult

ReadAllJson() public method

public ReadAllJson ( [ request ) : System.Web.Mvc.ActionResult
request [
return System.Web.Mvc.ActionResult

Update() public method

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

UpdateJson() public method

public UpdateJson ( [ request, CommodityTypeViewModel viewModel ) : System.Web.Mvc.ActionResult
request [
viewModel Cats.Areas.Settings.Models.ViewModels.CommodityTypeViewModel
return System.Web.Mvc.ActionResult

toViewModelCollection() public method

public toViewModelCollection ( List ermodel ) : IEnumerable
ermodel List
return IEnumerable