Esempio n. 1
0
        public List <HastaneBolumDTO> Get(int hastaneId)
        {
            using (HastaneBolumRepository hasbolRepo = new HastaneBolumRepository())
            {
                try
                {
                    var model = hasbolRepo.GetByFilter(x => x.hastaneID == hastaneId, x => x.Bolum, x => x.Hastane).ToList();

                    return(hasbolumMaper.MapAll(model));
                }
                catch
                {
                    throw;
                }
            }
        }