public async Task <ResponseDto> UpdateTempPost(int postId, TempPostsDto posts) { var entity = this.postsMapper.Configuration.Map <M.TempPosts>(posts); await this.userRepository.UpdateTempPost(postId, entity); return(new ResponseDto { }); }
public async Task<ResponseDto> Update(int postId, [FromBody]TempPostsDto postsDto) { return await this.tempPostsService.UpdateTempPost(postId, postsDto); }
public async Task<ResponseDto> Create([FromBody]TempPostsDto postsDto) { return await this.tempPostsService.CreateTempPost(postsDto); }