public async Task <IResponseWrapper> GetProfileById(int id) { try { var response = await localDataSource.GetProfileById(id); return(new Success <Core.Model.Profile>(ProfileMapper.ConvertFromDto(response))); } catch (Exception e) { Debug.WriteLine("[ProfileRepository.GetProfileById()] Error: " + e.Message); return(new Error(e.Message)); } }