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