Esempio n. 1
0
        public async Task <IActionResult> Crop(int Width, int Height, Guid Id)
        {
            var uri = await _imageStorage.GetCroppedUri(Id, Width, Height);

            return(Response(uri.AbsoluteUri));
        }
Esempio n. 2
0
 public string Resolve(PerfilQuery source, PerfilVM destination, string destMember, ResolutionContext context)
 {
     return(source.FotoDeCapa == null ? "" : _imageStorage.GetCroppedUri(source.FotoDeCapa.Value, EnumProportion.p16x9, EnumSize.lg).GetAwaiter().GetResult().AbsoluteUri);
 }
Esempio n. 3
0
 public string Resolve(FotoQuery source, FotoPerfilVM destination, string destMember, ResolutionContext context)
 {
     return(_imageStorage.GetCroppedUri(source.Id, EnumProportion.p1x1, EnumSize.thumbnail).GetAwaiter().GetResult().AbsoluteUri);
 }
Esempio n. 4
0
 public string Resolve(ClienteQuery source, ClienteBuscaViewModel destination, string destMember, ResolutionContext context)
 {
     return(source.FotoDePerfil == null ? "" : _imageStorage.GetCroppedUri(source.FotoDePerfil.Value, EnumProportion.p4x3, EnumSize.thumbnail).GetAwaiter().GetResult().AbsoluteUri);
 }