public async Task <IActionResult> InstallSampleData(SampleDataModel sampleData) { var fileBytes = await sampleData.MediaFile.GetBytesAsync(); //install the package var success = _installationService.InstallSamplePackage(fileBytes); if (success) { return(R.Success.Result); } return(R.Fail.With("error", T("Failed to install the sample package")).Result); }