protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
//[HttpGet] //[ActionName("Id")] //[SwaggerOperation("Id")] //[SwaggerResponse(HttpStatusCode.OK)] //[SwaggerResponse(HttpStatusCode.NotFound)] //public IHttpActionResult IndicesById() //{ // try // { // return Ok(GetDbContext().indices.); // } // catch (Exception exError) // { // return BadRequest((new Error(0, exError.Message, "IndicesById").ToString())); // } //} protected override void Dispose(bool disposing) { if (disposing) { if (dbCxt != null) { dbCxt.Dispose(); } } base.Dispose(disposing); }