// GET api/Claim/5 public string Get(int id) { var claim = claimQuery.Get(id); if (claim == null) { return("no product with that Id"); } return(claim.ToView()); }
public Exception ValidateRequest(CancelClaimRequest request) { return((null == claimQuery.Get(request.Claim.Id)) ? new InvalidOperationException(string.Format("Claim with Id {0} does not exist", request.Claim.Id)) : null); }