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