Beispiel #1
0
        public T Add(T newObject)
        {
            if (newObject == null)
            {
                return(default(T));
            }
            V   obj    = _mapper.Map <V>(newObject);
            var result = _dao.AddItem(obj);

            return(_mapper.Map <T>(result));
        }