public async Task <IDataResult <UserOperationClaim> > GetByIdAsync(int id)
        {
            var result = await _userOperationClaimDal.GetAsync(uoc => uoc.Id == id);

            return(new SuccessDataResult <UserOperationClaim>(result, Messages.UserOperationClaim.GetByIdSuccess));
        }
Ejemplo n.º 2
0
 public async Task <IDataResult <UserOperationClaim> > Get(string id)
 {
     return(new SuccessDataResult <UserOperationClaim>(await _userOperationClaimDal.GetAsync(u => u.Id == id)));
 }