Esempio n. 1
0
 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)));
 }
Esempio n. 2
0
 /// <summary>
 /// 修改意见
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public Task <int> ModifyRfOpinion(RfOpinionEntity model)
 {
     return(_rfOpinionRepository.UpdateAsync(model));
 }
Esempio n. 3
0
 /// <summary>
 /// 添加意见
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public Task <int> AddRfOpinion(RfOpinionEntity model)
 {
     model.CreateTime = DateTime.Now.D2LSecond();
     return(_rfOpinionRepository.InsertAsync(model));
 }
Esempio n. 4
0
 public async Task <IActionResult> ModifyRfOpinion([FromBody] RfOpinionEntity model)
 {
     return(OkResult(await _server.ModifyRfOpinion(model)));
 }