public ContentResult leaving(LeavingMsgRequest request) { var msg = string.Empty; var flag = _leavingMsgService.Insert(request, out msg); return(Result <string>(flag, msg)); }
public void Insert() { string msg = string.Empty; var request = new LeavingMsgRequest { Email = "*****@*****.**", Message = "test", Mobile = "182********", Name = "shangguanlei" }; service.Insert(request, out msg); }