Exemple #1
0
        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));
        }