public async Task <ActionResult <CondominioViewModel> > GetById(Guid id)
        {
            var Condominio = _mapper.Map <CondominioViewModel>(await _dbCondominio.GetById(id));

            if (Condominio == null)
            {
                return(NotFound());
            }

            return(CustomResponse(Condominio));
        }
Exemple #2
0
 public SceltaContratto(CondominioDTO stabile)
 {
     _condominio = stabile;
     if (Security.Login.Instance.CurrentLogin().CondominioSelected != 0)
     {
         _condominioService = ResolveComponent<ICondominioService>();
         _condominio = _condominioService.GetById(Security.Login.Instance.CurrentLogin().CondominioSelected, true);
     }
     InitializeComponent();
     inizializza();
 }