public async Task <IHttpActionResult> PostFee(Fee fee) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } rep.InsertFee(fee); await rep.SaveAsync(); return(CreatedAtRoute("DefaultApi", new { id = fee.FeeID }, fee)); }