//保存数据字典子项 public BaseResponse <DC_COMMDTLModel> SaveDCCOMMDtl(DC_COMMDTLModel request) { unitOfWork.BeginTransaction(); var responsePerson = base.Save <DC_COMMDTL, DC_COMMDTLModel>(request, (q) => q.ITEMTYPE == request.ITEMTYPE); unitOfWork.Commit(); return(responsePerson); }
public IHttpActionResult Post(DC_COMMDTLModel baseRequest) { var response = service.SaveDCCOMMDtl(baseRequest); return(Ok(response)); }