示例#1
0
        public virtual TAddResponse AddWebMethod(AddRequest <TAddParentKey, TAddValues> Operation)
        {
            var ret = default(TAddResponse);

            if (CanAdd(Operation))
            {
                var Value  = Add(Operation);
                var mapped = Mapper.Instance.Map <TAddResponse>(Value);
                ret = mapped;
            }

            return(ret);
        }
示例#2
0
 protected override object Add(AddRequest <EmptyParameters, TAddParameters> Operation)
 {
     return(DataController.Add(Operation.Values));
 }
示例#3
0
 protected abstract Object Add(AddRequest <TAddParentKey, TAddValues> Operation);
示例#4
0
 protected virtual bool CanAdd(AddRequest <TAddParentKey, TAddValues> Operation)
 {
     return(true);
 }