public async Task <IActionResult> AddRfOpinion([FromBody] RfOpinionEntity model) { if (model.OpenId.IsNullOrWhiteSpace() || model.Opinion.IsNullOrWhiteSpace() || model.ContactInfo.IsNullOrWhiteSpace()) { return(OkResult(0)); } return(OkResult(await _server.AddRfOpinion(model))); }
/// <summary> /// 修改意见 /// </summary> /// <param name="model"></param> /// <returns></returns> public Task <int> ModifyRfOpinion(RfOpinionEntity model) { return(_rfOpinionRepository.UpdateAsync(model)); }
/// <summary> /// 添加意见 /// </summary> /// <param name="model"></param> /// <returns></returns> public Task <int> AddRfOpinion(RfOpinionEntity model) { model.CreateTime = DateTime.Now.D2LSecond(); return(_rfOpinionRepository.InsertAsync(model)); }
public async Task <IActionResult> ModifyRfOpinion([FromBody] RfOpinionEntity model) { return(OkResult(await _server.ModifyRfOpinion(model))); }