C# 클래스 Badges.Controllers.ProfileController

상속: ApplicationController
파일 보기 프로젝트 열기: ucdavis/Badges

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Create() 공개 메소드

public Create ( ) : System.Web.Mvc.ActionResult
리턴 System.Web.Mvc.ActionResult

Crop() 공개 메소드

public Crop ( ) : System.Web.Mvc.ActionResult
리턴 System.Web.Mvc.ActionResult

Edit() 공개 메소드

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

Picture() 공개 메소드

public Picture ( ) : System.Web.Mvc.ActionResult
리턴 System.Web.Mvc.ActionResult

ProfileController() 공개 메소드

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

ViewProfileImage() 공개 메소드

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
리턴 System.Web.Mvc.ActionResult