コード例 #1
0
        public override void Add(Client obj)
        {
            var clientexist = _repositoryClient.GetByEmail(obj.Email.ToString());

            if (clientexist != null)
            {
                Errors.Add(new Error("001", "Cliente já existente na base de dados!"));
                return;
            }
            obj.SetIsEnable(true);
            base.Add(obj);
        }