Beispiel #1
0
        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)));
        }