常用方法
常用方法
常用方法
常用方法
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); } }