public async Task <IActionResult> BulkUploadProviderWiseTrans([FromForm] string providerId) { ExcelFileAC excelFileAC = new ExcelFileAC(); IFormFile file = Request.Form.Files[0]; excelFileAC.File = file; excelFileAC.FolderName = "TempUpload"; ExcelUploadResponseAC exceluploadDetail = _iBillUploadRepository.UploadNewExcel(excelFileAC); string userId = HttpContext.User.Claims.FirstOrDefault(c => c.Type == "user_id").Value; string fullname = HttpContext.User.Claims.FirstOrDefault(c => c.Type == "fullname").Value; return(Ok(await _iConfigurationRepository.BulkUploadProviderWiseTrans(Convert.ToInt64(userId), exceluploadDetail, Convert.ToInt64(providerId), fullname))); }
public async Task <IActionResult> BulkAssginTelePhone() { ExcelFileAC excelFileAC = new ExcelFileAC(); IFormFile file = Request.Form.Files[0]; excelFileAC.File = file; excelFileAC.FolderName = "TempUpload"; ExcelUploadResponseAC exceluploadDetail = _iBillUploadRepository.UploadNewExcel(excelFileAC); string userId = HttpContext.User.Claims.FirstOrDefault(c => c.Type == "user_id").Value; string fullname = HttpContext.User.Claims.FirstOrDefault(c => c.Type == "fullname").Value; return(Ok(await _iTelephoneRepository.UploadBulkAssignTelePhone(Convert.ToInt64(userId), exceluploadDetail, fullname))); }