public int PutRate([FromBody] Rate _rate) { return(db.update_rates(_rate.category, _rate.rate1, _rate.date)); }