Exemplo n.º 1
0
        private bool CheckExistsCode(long id, string code)
        {
            var db = productServices.Count(x => x.Id != id && x.Code.ToLower() == code.ToLower());

            if (db > 0)
            {
                return(true);
            }
            return(false);
        }