public HttpResponseMessage AddUpdateFeedback(FeedbackDomainModel model)
 {
     try
     {
         HttpResponseMessage httpResponse = new HttpResponseMessage();
         var res = feedbackRepository.AddUpdateFeedback(model);
         if (res != null && res.isSuccess)
         {
             httpResponse = Request.CreateResponse(HttpStatusCode.OK, res);
         }
         else
         {
             httpResponse = Request.CreateResponse(HttpStatusCode.Unauthorized, res);
         }
         return(httpResponse);
     }
     catch (Exception ex)
     {
         ErrorLog.LogError(ex);
         throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError)
         {
             Content      = new StringContent("An error occurred, please try again or contact the administrator."),
             ReasonPhrase = "An error occurred, please try again or contact the administrator.",
             StatusCode   = HttpStatusCode.InternalServerError
         });
     }
 }