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)); }
public async Task <int> SetWellBeing(T obj, string user) { WellBeing wellBeing = _mapper.Map <WellBeing>(obj); return(await _repository.SetWellBeing(wellBeing, user)); }