예제 #1
0
        public async Task <T> GetWellBeing(T obj, string user)
        {
            WellBeing wellBeing = _mapper.Map <WellBeing>(obj);

            wellBeing = await _repository.GetWellBeing(wellBeing, user);

            return(_mapper.Map <T>(wellBeing));
        }
예제 #2
0
        public async Task <int> SetWellBeing(T obj, string user)
        {
            WellBeing wellBeing = _mapper.Map <WellBeing>(obj);

            return(await _repository.SetWellBeing(wellBeing, user));
        }