//=====================================================GETS ABOVE=====================================================

        #region Save
        static public async Task <string> Save(EBaseEntity eBaseEntity)
        {
            eBaseEntity.modificationDateUTC = DateTime.UtcNow;
            eBaseEntity.type  = EntityType.Supplier;
            using var context = new SMySQLContext();
            if (string.IsNullOrEmpty(eBaseEntity.id))
            {
                eBaseEntity.id = Guid.NewGuid().ToString();
                eBaseEntity.creationDateUTC = DateTime.UtcNow;
                var e = await context.BaseUsers.AddAsync(eBaseEntity);

                await context.SaveChangesAsync();

                eBaseEntity.id = e.Entity.id;
            }
            else
            {
                var e = context.BaseUsers.Update(eBaseEntity);
                await context.SaveChangesAsync();

                eBaseEntity.id = e.Entity.id;
            }
            SBaseAddresses.SaveClientAddresses(eBaseEntity.id, eBaseEntity.addressList);
            return(eBaseEntity.id);
        }
        public IActionResult GetEntityAddresses(string entityID)
        {
            var list = SBaseAddresses.GetClientAddresses(entityID);

            return(Ok(list));
        }
        public IActionResult GetByID(string id)
        {
            var eBaseAddress = SBaseAddresses.GetByID(id);

            return(Ok(eBaseAddress));
        }