public WebApiResult Put([FromRoute] int?id, [FromBody] Bike bike) { try { Helper.Expect(bike, t => t.BikeId, id); CallContext.AntiforgeryTokenValidate(true); return(Helper.OK(() => BikeService.Put(bike))); } catch (Exception ex) { return(Helper.HandleException(ex)); } }