public async Task <IActionResult> Post([FromForm] CommentViewModel model) { var comment = await MapViewModelToCommentInstance(model); var callerId = await _authHelper.GetCallerId(_caller); if (await _authHelper.CheckIfUserIsBanned(callerId)) { return(new BadRequestObjectResult( new { Message = "User currently bannend", StatusCodes.Status403Forbidden })); } comment = await _commentRepository.CreateAsync(comment); if (model.Files != null) { comment.Files = await _uploadHelper.UploadFiles(model.Files, comment.Id); comment = await _commentRepository.AddCommentFiles(comment); } return(new OkObjectResult(new { Message = "Whuhu", comment })); }