示例#1
0
        private bool VerificarAndar(AndarModel andar)
        {
            if (andar == null)
            {
                return(true);
            }

            var andarValidacao = _andarService.GetById <AndarModel>(andar.Id);

            return(andarValidacao != null);
        }
示例#2
0
        public AndarModel Get(string id)
        {
            AndarModel andarModel = null;

            try
            {
                andarModel = _service.GetById <AndarModel>(id);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(andarModel);
        }