public Task <bool> Update(UserProfileDtoInput userProfileDtoInput) { var updated = _mapper.Map <UserProfile>(userProfileDtoInput); try { _repo.Update(updated, "API"); return(Task.FromResult(true)); } catch (Exception ex) { return(Task.FromResult(true)); } }
public Task <bool> Create(UserProfileDtoInput userProfileDtoInput) { try { _repo.Create <UserProfile>(_mapper.Map <UserProfile>(userProfileDtoInput), "API"); return(Task.FromResult(true)); } catch (Exception) { return(Task.FromResult(false)); throw; } }