Exemplo n.º 1
0
        public ServiceResult <Application[]> BasvuruListesi(string personelID)
        {
            try
            {
                VakifDb  db       = new VakifDb(_appSettings.ConnStr);
                WSHelper wsHelper = new WSHelper(db, _appSettings);

                var    sonuc = db.GetKullanici(personelID);
                string TCNo  = sonuc.Veri.Rows[0]["TCKimlikNo"].ToString();

                Application[] liste = wsHelper.BasvuruListesi(TCNo, sonuc);

                return(new ServiceResult <Application[]>()
                {
                    isSuccessfull = true, ResultCode = 1, ResultData = liste, ResultExplanation = "Liste Başarılı"
                });
            }
            catch (Exception exc)
            {
                return(new ServiceResult <Application[]>()
                {
                    isSuccessfull = false, ResultCode = 2, ResultData = null, ResultExplanation = exc.Message
                });
            }
        }