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