public async Task <GrainOperationResult> CreateComment(CreateCommentViewModel model, string feedItemId) { try { await _repository.CreateComment(model, feedItemId, GrainUserId); return(new GrainOperationResult { Successful = true, Message = "Operation executed successfully." }); } catch (Exception ex) { return(ex.ResultFromException()); } }
public async Task <string> CreateComment(CreateCommentViewModel model) { return(await _createRepository.CreateComment(model)); }