コード例 #1
0
        public IResult Add(Territory territory)
        {
            //HandleException.AttributeException(() => ValidationTool.Validate(new TerritoryValidator(), territory));
            //HandleException.ClassException(() => _territoryDal.Add(territory));

            _territoryDal.Add(territory);
            return(new SuccessResult(TerritoryMessages.Added));
        }
コード例 #2
0
 public void Add(Territory entity)
 {
     _territoryDal.Add(entity);
 }