public CustomerTO Update(CustomerTO Entity) { if (Entity is null) { throw new ArgumentNullException(nameof(Entity)); } return(customersManagerContext.Customers.Update(Entity.ToEntity()).Entity.ToTransferObject()); }
public bool Remove(CustomerTO entity) { var formDeleted = customersManagerContext.Customers.Remove(entity.ToEntity()); return(formDeleted.State == EntityState.Deleted); }