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