Beispiel #1
0
 public List <Yonetici> YoneticiHepsiniSec()
 {
     try
     {
         using (var business = new YoneticiBusiness())
         {
             return(business.YoneticiHepsiniSec());
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #2
0
        public bool GirisYap(string TcKimlik, string Sifre)
        {
            bool basarili = false;

            try
            {
                using (var business = new YoneticiBusiness())
                {
                    foreach (var item in business.YoneticiHepsiniSec())
                    {
                        if (item.TcKimlik == TcKimlik && item.Sifre == Sifre)
                        {
                            basarili = true;
                        }
                    }
                } return(basarili);
            }
            catch (Exception)
            {
                throw;
            }
        }
Beispiel #3
0
        // GET: api/Arac

        public IHttpActionResult Get()
        {
            var Yoneticilar = YoneticiBusiness.YoneticiHepsiniSec();

            return(Ok(Yoneticilar));
        }