Beispiel #1
0
        public Bed GetBed(int?id)
        {
            if (id == null)
            {
                return(null);
            }
            int idNotNull = id ?? default(int);

            return(_bedRepository.GetDetail(idNotNull));
        }
        public Bed GetDetail(int id)
        {
            if (id == 0)
            {
                return(null);
            }
            var Bed = _bedRepository.GetDetail(id);

            return(Bed);
        }