Exemplo n.º 1
0
 public HttpResponseMessage GetRewardList(int StoreId, int LoggedInUserId, int reward_id)
 {
     try
     {
         var result = _rewardService.GetRewardList(StoreId, LoggedInUserId, reward_id);
         if (result != null)
         {
             return(Request.CreateResponse(HttpStatusCode.OK, result));
         }
         return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Something wrong! Please try again later."));
     }
     catch (Exception)
     {
         throw;
     }
 }