public IActionResult UploadModal() { var vmo = new UploadFotoVMO(); vmo.Sesiones = _serviceSesion.GetElements().Select(x => new SelectListItem { Text = x.Nombre, Value = x.Id.ToString() }); return(PartialView("_ModalUpload", vmo)); }
public IActionResult GetSesions() { var vmo = SesionAdapter.ConvertList(_serviceSesion.GetElements().ToList()); foreach (var sesion in vmo) { if (sesion.IdFotoPreview.HasValue) { sesion.UrlFoto = _serviceFoto.GetElementById(sesion.IdFotoPreview.Value).UriAzure; } } return(PartialView("_Sessions", vmo)); }