public async Task <PartnerContactErrorCodes> CreateIfNotExistAsync([FromBody] PartnerContactRequestModel partnerContactRequest) { var result = await _partnerContactService.CreateIfNotExistsAsync(_mapper.Map <PartnerContactModel>(partnerContactRequest)); return(_mapper.Map <PartnerContactErrorCodes>(result)); }
public async Task CreateOrUpdateAsync([FromBody] PartnerContactRequestModel partnerContactRequest) { await _partnerContactService.CreateOrUpdateAsync(_mapper.Map <PartnerContactModel>(partnerContactRequest)); }