C# Class Badges.Controllers.ProfileController

Inheritance: ApplicationController
Datei anzeigen Open project: ucdavis/Badges

Public Methods

Method Description
Create ( ) : System.Web.Mvc.ActionResult
Crop ( ) : System.Web.Mvc.ActionResult
Edit ( ) : System.Web.Mvc.ActionResult

Edit your profile

Picture ( ) : System.Web.Mvc.ActionResult
ProfileController ( IRepositoryFactory repositoryFactory, IFileService fileService, INotificationService notificationService ) : System
ViewProfileImage ( System.Guid profileId ) : System.Web.Mvc.ActionResult

View either your own profile image, or another user's if you pass their profile id

Private Methods

Method Description
Create ( Profile profile, string roles, System.Web.HttpPostedFileBase image ) : System.Web.Mvc.ActionResult
Crop ( System.Web.HttpPostedFileBase picture, int x1, int x2, int y1, int y2, int w, int h ) : System.Web.Mvc.ActionResult
CropAndSave ( System.Web.HttpPostedFileBase image, int width, int height ) : string

Crops the image to the given size, saves, and returns the url of the final blob

Edit ( Profile profile, string roles, System.Web.HttpPostedFileBase image, bool isInstructor = false ) : System.Web.Mvc.ActionResult

Method Details

Create() public method

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

Crop() public method

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

Edit() public method

Edit your profile
public Edit ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Picture() public method

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

ProfileController() public method

public ProfileController ( IRepositoryFactory repositoryFactory, IFileService fileService, INotificationService notificationService ) : System
repositoryFactory IRepositoryFactory
fileService IFileService
notificationService INotificationService
return System

ViewProfileImage() public method

View either your own profile image, or another user's if you pass their profile id
public ViewProfileImage ( System.Guid profileId ) : System.Web.Mvc.ActionResult
profileId System.Guid profileID, optional
return System.Web.Mvc.ActionResult