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