public static Neighborhood ToEntity(this NeighborhoodModel model)
        {
            Neighborhood entity = new Neighborhood();

            entity.Id   = model.Id;
            entity.Name = model.Name;
            entity.City = model.City?.ToEntity();
            return(entity);
        }
        public static NeighborhoodModel ToModel(this Neighborhood entity)
        {
            NeighborhoodModel model = new NeighborhoodModel();

            model.Id   = entity.Id;
            model.Name = entity.Name;
            if (entity.Image != null)
            {
                model.Image = Convert.ToBase64String(entity.Image);
            }
            model.City = entity.City?.ToModel();
            return(model);
        }