예제 #1
0
 public RpcResponse <bool> AddData(TestModelDto model)
 {
     return(RpcCommHelper.GetReponse <bool>(() =>
     {
         return TestDateHelper.AddDataByModel(model).Id > 0;
     }));
 }
예제 #2
0
 public RpcResponse <bool> DeleteData(int id)
 {
     return(RpcCommHelper.GetReponse <bool>(() =>
     {
         return TestDateHelper.DeleteData();
     }));
 }
예제 #3
0
 public RpcResponse <bool> UpdateData(TestModelDto model)
 {
     return(RpcCommHelper.GetReponse <bool>(() =>
     {
         return TestDateHelper.UpdateData();
     }));
 }
예제 #4
0
 public RpcResponse <string> GetData(string value)
 {
     return(RpcCommHelper.GetReponse <string>(() =>
     {
         return "success" + value;
     }));
 }
예제 #5
0
 public RpcResponse <List <TestModelDto> > GetDataList(int pageIndex, int pageSize)
 {
     return(RpcCommHelper.GetReponse <List <TestModelDto> >(() => {
         return TestDateHelper.GetListByPage(pageIndex, pageSize);
     }));
 }