예제 #1
0
        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));
        }
예제 #2
0
        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));
        }