/// <summary> /// Get Destination record from DB based on DestinationCode. /// </summary> /// <param name="destinationCode">DestinationCode</param> /// <returns></returns> public async Task <Destination> GetDestinationByCode(string destinationCode) { var result = await _mongoRepository.GetDestinationByCode(destinationCode); if (result != null) { return(_mapper.Map <Destination>(result)); } return(null); }