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