C# Class KnowYourTurf.Web.Controllers.PhotoController

Inheritance: KYTController
显示文件 Open project: reharik/KnowYourTurf

Public Methods

Method Description
AddUpdate ( ViewModel input ) : System.Web.Mvc.ActionResult
Delete ( ViewModel input ) : System.Web.Mvc.ActionResult
Display ( ViewModel input ) : System.Web.Mvc.ActionResult
PhotoController ( IRepository repository, ISaveEntityService saveEntityService, ISelectListItemService selectListItemService, IUploadedFileHandlerService uploadedFileHandlerService, IHttpContextAbstractor httpContextAbstractor ) : System
Save ( PhotoViewModel input ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
mapToDomain ( PhotoViewModel input, Photo photo ) : Photo

Method Details

AddUpdate() public method

public AddUpdate ( ViewModel input ) : System.Web.Mvc.ActionResult
input KnowYourTurf.Core.ViewModel
return System.Web.Mvc.ActionResult

Delete() public method

public Delete ( ViewModel input ) : System.Web.Mvc.ActionResult
input KnowYourTurf.Core.ViewModel
return System.Web.Mvc.ActionResult

Display() public method

public Display ( ViewModel input ) : System.Web.Mvc.ActionResult
input KnowYourTurf.Core.ViewModel
return System.Web.Mvc.ActionResult

PhotoController() public method

public PhotoController ( IRepository repository, ISaveEntityService saveEntityService, ISelectListItemService selectListItemService, IUploadedFileHandlerService uploadedFileHandlerService, IHttpContextAbstractor httpContextAbstractor ) : System
repository IRepository
saveEntityService ISaveEntityService
selectListItemService ISelectListItemService
uploadedFileHandlerService IUploadedFileHandlerService
httpContextAbstractor IHttpContextAbstractor
return System

Save() public method

public Save ( PhotoViewModel input ) : System.Web.Mvc.ActionResult
input PhotoViewModel
return System.Web.Mvc.ActionResult