public RateUserViewModel(IMvxNavigationService navigationService, IProfileCommentService profileCommentService, IToastSerivce toastSerivce) { _navigationService = navigationService; _profileCommentService = profileCommentService; _toastSerivce = toastSerivce; CommentForProfile = new BaseProfileCommentViewModel { UserCommentator = Settings.ApplicationData.CurrentUserViewModel, Grade = 5 }; }
public UserCommentItemViewModel(IMvxNavigationService navigationService, BaseProfileCommentViewModel comment) { _navigationService = navigationService; Comment = comment; }
public async Task <ApiResult <BaseProfileCommentViewModel> > CreateCommentForProfile(BaseProfileCommentViewModel comment) { return(await ApiRequestHelper.HandlApiRequest(async() => { var commentForProfile = await _api.CreateProfileComment(Mapper.Map <ProfileComment>(comment)); return new ApiResult <BaseProfileCommentViewModel>(string.Empty, true, new BaseProfileCommentViewModel(commentForProfile)); })); }