Ejemplo n.º 1
0
 private void ImportAuthenticationData()
 {
     this.client            = this.Auth.Client;
     this.streamingInstance = this.Auth.StreamingUri;
     this.PostStatus        = new PostStatusModel(this.client);
     this.Account           = this.Auth.CurrentUser;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// update the post status.
        /// </summary>
        /// <param name="model">the post edit add model.</param>
        /// <param name="postStatusModel">the post status model.</param>
        /// <returns>the task.</returns>
        public async Task UpdatePostStatus(PostEditAddModel model, PostStatusModel postStatusModel)
        {
            var entity = _mapper.Map <PostEditAddModel, Post>(model);

            entity.PostStatusId = postStatusModel.PostStatusId;

            await _postRepository.UpdatePost(entity);
        }