public IHttpActionResult AddRmaComment([FromBody] OPC_RMAComment comment, [UserId] int uid) { return(DoAction(() => { _rmaService.UserId = uid; comment.CreateDate = DateTime.Now; comment.CreateUser = uid; comment.UpdateDate = comment.CreateDate; comment.UpdateUser = comment.CreateUser; _rmaService.AddComment(comment); }, "增加退货单备注失败")); }
public void AddComment(OPC_RMAComment comment) { _rmaCommentRepository.Create(comment); }