public IHttpActionResult PutSymbols_tbl(int id, Symbols_tbl symbols_tbl)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != symbols_tbl.SymbolCode)
            {
                return(BadRequest());
            }

            db.Entry(symbols_tbl).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!Symbols_tblExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetSymbols_tbl(int id)
        {
            Symbols_tbl symbols_tbl = db.Symbols_tbl.Find(id);

            if (symbols_tbl == null)
            {
                return(NotFound());
            }

            return(Ok(symbols_tbl));
        }
        public IHttpActionResult PostSymbols_tbl(Symbols_tbl symbols_tbl)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.Symbols_tbl.Add(symbols_tbl);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = symbols_tbl.SymbolCode }, symbols_tbl));
        }
        public IHttpActionResult DeleteSymbols_tbl(int id)
        {
            Symbols_tbl symbols_tbl = db.Symbols_tbl.Find(id);

            if (symbols_tbl == null)
            {
                return(NotFound());
            }

            db.Symbols_tbl.Remove(symbols_tbl);
            db.SaveChanges();

            return(Ok(symbols_tbl));
        }