Beispiel #1
0
 public IHttpActionResult GetResponseForOpportunity(int opportunityId, int contactId)
 {
     try
     {
         var response = _opportunityService.GetOpportunityResponse(contactId, opportunityId);
         var mapped   = Mapper.Map <MpResponse, OpportunityResponseDto>((MpResponse)response);
         return(Ok(mapped));
     }
     catch (Exception exception)
     {
         var apiError = new ApiErrorDto("Get Response For Opportunity", exception);
         throw new HttpResponseException(apiError.HttpResponseMessage);
     }
 }