Beispiel #1
0
        public async Task <IResponseWrapper> UpdateProfile(Core.Model.Profile profile)
        {
            try
            {
                var response = await localDataSource.UpdateProfile(ProfileMapper.ConvertToDto(profile));

                return(new Success <bool>(response));
            }
            catch (Exception e)
            {
                Debug.WriteLine("[ProfileRepository.UpdateProfile()] Error: " + e.Message);
                return(new Error(e.Message));
            }
        }
Beispiel #2
0
 public async Task <IResponseWrapper> UpdateProfile(Core.Model.Profile profile)
 {
     return(await Task.Run(() => repository.UpdateProfile(profile)));
 }