Exemplo n.º 1
0
        protected void ValidateOrg(Org org)
        {
            var example = new Org();

            example.Code = org.Code;
            Check.Require(_orgRepository.GetCountByExample(example, org.Id) == 0,
                          "An Organization with this code already exist.");
        }