C# Class Agribusiness.Web.Controllers.PersonController

Inheritance: ApplicationController
Exibir arquivo Open project: ucdavis/Agribusiness

Public Methods

Method Description
DownloadPhoto ( int id ) : System.Web.Mvc.FileResult
Edit ( System.Guid id ) : System.Web.Mvc.ActionResult

Attendee's page to update their own profile, Limited editing page

GetOriginalPicture ( int id ) : System.Web.Mvc.ActionResult
GetProfilePicture ( int id ) : System.Web.Mvc.ActionResult
GetThumbnail ( int id ) : System.Web.Mvc.ActionResult
GetvCard ( int id ) : System.Web.Mvc.FileResult

Get a vcard for a person

PersonController ( IRepository personRepository, Guid>.IRepositoryWithTypedId userRepository, string>.IRepositoryWithTypedId seminarRoleRepository, IRepository seminarPersonRepository, IRepository seminarRepository, Guid>.IRepositoryWithTypedId membershipRepository, IPictureService pictureService, IPersonService personService, IFirmService firmService, IRegistrationService registrationService, IvCardService vCardService, IEventService eventService, IRepositoryFactory repositoryFactory ) : System
UpdateProfilePicture ( int id, int seminarId, bool admin = false ) : ActionResult

Private Methods

Method Description
AddtoSiteList ( int personId ) : JsonNetResult
AdminEdit ( System.Guid id, int seminarId, bool allList ) : System.Web.Mvc.ActionResult
AdminEdit ( System.Guid id, int seminarId, bool allList, PersonEditModel personEditModel, System.Web.HttpPostedFileBase profilepic ) : System.Web.Mvc.ActionResult
CancelCoupon ( int personId, int seminarId ) : System.Web.Mvc.ActionResult
Create ( int id ) : System.Web.Mvc.ActionResult
Create ( int id, PersonEditModel personEditModel, System.Web.HttpPostedFileBase profilepic ) : System.Web.Mvc.ActionResult
Edit ( System.Guid id, PersonEditModel personEditModel, System.Web.HttpPostedFileBase profilepic ) : System.Web.Mvc.ActionResult
MarkPaid ( int id ) : System.Web.Mvc.ActionResult
MasterList ( ) : System.Web.Mvc.ActionResult
Profile ( int id ) : System.Web.Mvc.ActionResult
RemoveFromSiteList ( int personId ) : JsonNetResult
ResetPassword ( int id ) : System.Web.Mvc.ActionResult
SearchPerson ( string searchTerm ) : JsonNetResult
SetAddresses ( Person person, IList
addresses, ModelStateDictionary modelState ) : void
SetCommodities ( SeminarPerson seminarPerson, IList commodities ) : void
SetContacts ( Person person, IList contacts, ModelStateDictionary modelState ) : void
SetPerson ( PersonEditModel personEditModel, SeminarPerson seminarPerson, ModelStateDictionary modelState, Person person = null, HttpPostedFileBase profilePic = null ) : Person
SiteList ( ) : ActionResult
UnlockUser ( int id ) : ActionResult
UpdateAutomatedNotification ( int personId, int seminarId, bool automatedNotification ) : JsonNetResult
UpdateBiography ( int personId, int seminarId, string biographytxt ) : ActionResult
UpdateComments ( int personId, int seminarId, string comments ) : ActionResult
UpdateCoupon ( int personId, int seminarId, decimal couponAmount ) : ActionResult
UpdateHotel ( int personId, int seminarId, HotelPostModel hotelPostModel ) : ActionResult
UpdateProfilePicture ( int id, int seminarId, int x, int y, int height, int width, bool admin = false ) : ActionResult
UpdateRegistrationStatus ( int personId, int seminarId ) : ActionResult
UpdateRoles ( int personId, int seminarId, List roles ) : ActionResult

Method Details

DownloadPhoto() public method

public DownloadPhoto ( int id ) : System.Web.Mvc.FileResult
id int
return System.Web.Mvc.FileResult

Edit() public method

Attendee's page to update their own profile, Limited editing page
public Edit ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid Person Id for admin editing
return System.Web.Mvc.ActionResult

GetOriginalPicture() public method

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

GetProfilePicture() public method

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

GetThumbnail() public method

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

GetvCard() public method

Get a vcard for a person
public GetvCard ( int id ) : System.Web.Mvc.FileResult
id int Person Id
return System.Web.Mvc.FileResult

PersonController() public method

public PersonController ( IRepository personRepository, Guid>.IRepositoryWithTypedId userRepository, string>.IRepositoryWithTypedId seminarRoleRepository, IRepository seminarPersonRepository, IRepository seminarRepository, Guid>.IRepositoryWithTypedId membershipRepository, IPictureService pictureService, IPersonService personService, IFirmService firmService, IRegistrationService registrationService, IvCardService vCardService, IEventService eventService, IRepositoryFactory repositoryFactory ) : System
personRepository IRepository
userRepository Guid>.IRepositoryWithTypedId
seminarRoleRepository string>.IRepositoryWithTypedId
seminarPersonRepository IRepository
seminarRepository IRepository
membershipRepository Guid>.IRepositoryWithTypedId
pictureService IPictureService
personService IPersonService
firmService IFirmService
registrationService IRegistrationService
vCardService IvCardService
eventService IEventService
repositoryFactory IRepositoryFactory
return System

UpdateProfilePicture() public method

public UpdateProfilePicture ( int id, int seminarId, bool admin = false ) : ActionResult
id int
seminarId int
admin bool
return ActionResult