public SorgulaGorevlendirCalisanYanitViewModel SorgulaCalisanGorevlendirme(SorgulaGorevlendirCalisanIstekViewModel istek)
        {
            try
            {
                SorgulaGorevlendirCalisanYanitViewModel yanit       = new SorgulaGorevlendirCalisanYanitViewModel(false);
                SorgulaGorevlendirCalisanYanit          servisYanit = null;
                SorgulaGorevlendirCalisanIstek          servisIstek = null;
                DateTime tarih       = Sabitler.BosTarih;
                int      kullaniciId = int.MinValue;
                List <CalisanGorevlendirmeViewModel> vmListe = null;

                if (!this._kontrol.uygunMu(istek))
                {
                    yanit.IsaretleGecemediIlkKontrolu(this._kontrol.alHataKodu(istek));
                    return(yanit);
                }

                tarih       = istek.Tarihi ?? Sabitler.BosTarih;
                kullaniciId = istek.KullaniciId ?? int.MinValue;

                if (tarih == Sabitler.BosTarih || kullaniciId == int.MinValue)
                {
                    throw new ApplicationException();
                }

                servisIstek = new SorgulaGorevlendirCalisanIstek(kullaniciId, tarih);

                servisYanit = this._gorevlendirmeServis.SorgulaCalisanGorevlendirme(servisIstek);

                if (servisYanit == null)
                {
                    throw new ApplicationException();
                }

                if (!servisYanit.BasariliMi)
                {
                    throw new ApplicationException();
                }

                vmListe = this._cevir.cevir(servisYanit.Liste.ToList());

                if (vmListe == null)
                {
                    throw new ApplicationException();
                }

                yanit = new SorgulaGorevlendirCalisanYanitViewModel(vmListe);

                return(yanit);
            }
            catch (Exception hata)
            {
                this._hataServis.YazHata(hata);
                return(new SorgulaGorevlendirCalisanYanitViewModel(hata));
            }
        }
 internal string alHataKodu(SorgulaGorevlendirCalisanIstekViewModel istek)
 {
     return("");
 }
 internal bool uygunMu(SorgulaGorevlendirCalisanIstekViewModel istek)
 {
     return(!(istek == null));
 }