public IHttpActionResult KullaniciList() { using (var kr = new KullanicilarRepository()) { List <kullanicilar> Kullanicilars = kr.KullaniciListele(); var content = new ResponseContent <kullanicilar>(Kullanicilars); return(new StandartResult <kullanicilar>(content, Request)); } }
public bool KullaniciListele() { try { using (var kullanici = new KullanicilarRepository()) { kullanici.KullaniciListele(); } return(true); } catch (Exception) { return(false); } }