public DTOResponse <DTOPartner> Create(DTOPartner createInfo)
        {
            var model = createInfo.ToModel();

            _collection.InsertOne(model);

            return(new DTOResponse <DTOPartner>()
            {
                Code = 200
            });
        }
        public DTOResponse <DTOPartner> Update(DTOPartner updateInfo)
        {
            var model = updateInfo.ToModel();

            _collection.UpdateOne <PartnerModel>(model => model.Id == updateInfo.Id, Builders <PartnerModel>
                                                 .Update
                                                 .Set("Name", model.Name)
                                                 .Set("Categories", model.Categories)
                                                 .Set("Street", model.Street)
                                                 .Set("Number", model.Number)
                                                 .Set("PostalCode", model.PostalCode)
                                                 .Set("City", model.City)
                                                 .Set("Country", model.Country)
                                                 .Set("State", model.State)
                                                 .Set("Latitude", model.Latitude)
                                                 .Set("Longitude", model.Longitude)
                                                 .Set("Email1", model.Email1)
                                                 .Set("Email2", model.Email2)
                                                 .Set("Tel1", model.Tel1)
                                                 .Set("Tel2", model.Tel2)
                                                 .Set("Cel1", model.Cel1)
                                                 .Set("Cel2", model.Cel2)
                                                 .Set("Url", model.Url)
                                                 .Set("FacebookUrl", model.FacebookUrl)
                                                 .Set("InstagramUrl", model.InstagramUrl)
                                                 .Set("IsChecked", model.IsChecked)
                                                 .Set("IsAuthorized", model.IsAuthorized)
                                                 .Set("ShowInApp", model.ShowInApp)
                                                 .Set("SubscriptionLevel", model.SubscriptionLevel)
                                                 .Set("Accountable", model.Accountable)
                                                 .Set("Description", model.Description)
                                                 .Set("Notes", model.Notes)
                                                 .Set("InfoStatus", model.InfoStatus)
                                                 .Set("BusinessName", model.BusinessName)
                                                 .Set("BusinessStreet", model.BusinessStreet)
                                                 .Set("BusinessNumber", model.BusinessNumber)
                                                 .Set("BusinessPostalCode", model.BusinessPostalCode)
                                                 .Set("BusinessCity", model.BusinessCity)
                                                 .Set("BusinessCountry", model.BusinessCountry)
                                                 .Set("BusinessState", model.BusinessState)
                                                 .Set("BusinessPec", model.BusinessPec)
                                                 .Set("BusinessTaxCode", model.BusinessTaxCode)
                                                 .Set("BusinessVatNumber", model.BusinessVatNumber)
                                                 .Set("BusinessTel", model.BusinessTel)
                                                 .Set("BusinessCel1", model.BusinessCel1)
                                                 .Set("BusinessCel2", model.BusinessCel2)
                                                 .Set("BusinessPec", model.BusinessPec)
                                                 .Set("BusinessUniqueCode", model.BusinessUniqueCode)
                                                 .Set("BusinessResponsibleName", model.BusinessResponsibleName)
                                                 .Set("BusinessResponsibleSurname", model.BusinessResponsibleSurname)
                                                 .Set("BusinessResponsibleTel", model.BusinessResponsibleTel)
                                                 .Set("BusinessResponsibleCel", model.BusinessResponsibleCel)
                                                 .Set("ImageId", model.ImageId)
                                                 .Set("ContractId", model.ContractId)
                                                 .Set("ConsensoId", model.ConsensoId)
                                                 .Set("PrivacyId", model.PrivacyId)
                                                 .Set("PagamentoId", model.PagamentoId)
                                                 .Set("Openings", model.Openings)
                                                 );

            return(new DTOResponse <DTOPartner>()
            {
                Code = 200
            });
        }