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)); }
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(); }