// [HttpGet] // /api/kullanici public IHttpActionResult Get() { try { var model = _kullaniciService.GetQuery().ToList(); return(Ok(model)); // 200: OK } catch (Exception exc) { return(BadRequest()); // 404: Bad Request } }
//[HttpGet] // /api/Kullanici //public IHttpActionResult Get() //{ // try // { // var model = _kullaniciService.GetQuery().ToList(); // return Ok(model); // 200: OK // } // catch (Exception exc) // { // return InternalServerError(); // 500: Internal Server Error // } //} public IHttpActionResult GetKullanicilar() { try { var model = _kullaniciService.GetQuery().ToList(); return(Ok(model)); // 200: OK } catch (Exception exc) { return(InternalServerError()); // 500: Internal Server Error } }