public async Task <IActionResult> AddPostCaption(int postId, string caption) { AppUser user = await userManager.GetUserAsync(User); try { await postService.AddPostCaption(postId, caption, user.Alias); return(Ok()); } catch (ArgumentException) { return(BadRequest()); } }