/// <summary> /// 插入数据 /// </summary> /// <param name="model"></param> public void Post(BradenScoreEntity model) { BradenScoreService service = new BradenScoreService(); service.SaveEntity(model.ID, model); }
/// <summary> /// 更新数据,幂等 /// </summary> /// <param name="key"></param> /// <param name="model"></param> public void Put([FromODataUri] string key, BradenScoreEntity model) { BradenScoreService service = new BradenScoreService(); service.UpdateEntity(model); }