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); }
protected override object Add(AddRequest <EmptyParameters, TAddParameters> Operation) { return(DataController.Add(Operation.Values)); }
protected abstract Object Add(AddRequest <TAddParentKey, TAddValues> Operation);
protected virtual bool CanAdd(AddRequest <TAddParentKey, TAddValues> Operation) { return(true); }