public ActionResult GetPartnerById(string id)
        {
            _logger.LogInformation("Getting a partners");
            var partners      = _partnerService.GetById(id);
            var partnerModels = PartnerMapper.SerializePartner(partners);

            return(Ok(partnerModels));
        }
        public ActionResult CreatePartner([FromBody] PartnerModel partner)
        {
            _logger.LogInformation("Adding a new partner");

            var partnerData = PartnerMapper.SerializePartner(partner);
            var newPartner  = _partnerService.CreatePartner(partnerData);

            return(Ok(newPartner));
        }
        public ActionResult UpdatePartner([FromBody] PartnerModel partner)
        {
            _logger.LogInformation("Update partner complete...");

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }


            var partnerData = PartnerMapper.SerializePartner(partner);
            var response    = _partnerService.UpdatePartner(partnerData);

            return(Ok(response));
        }