public Photo(PhotoId photoId, UserId userId, string fileName, byte[] fileUpload) { PhotoId = photoId; UserId = userId; FileName = FieldChecker.NotEmpty(fileName); ImageSource = ImageSource.Upload; }
public Photo(PhotoId photoId, UserId userId, string url) { PhotoId = photoId; UserId = userId; Url = FieldChecker.NotEmpty(url); ImageSource = ImageSource.Url; FileName = Path.GetFileName(url); }