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