Exemple #1
0
        public CustomerTO Update(CustomerTO Entity)
        {
            if (Entity is null)
            {
                throw new ArgumentNullException(nameof(Entity));
            }

            return(customersManagerContext.Customers.Update(Entity.ToEntity()).Entity.ToTransferObject());
        }
Exemple #2
0
        public bool Remove(CustomerTO entity)
        {
            var formDeleted = customersManagerContext.Customers.Remove(entity.ToEntity());

            return(formDeleted.State == EntityState.Deleted);
        }