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