public async Task <IActionResult> InsertInvoiceListReport(List <InvoiceList> input) { try { ResponseViewModel model = new ResponseViewModel(); var Result = await _iInvoiceList.InsertInvoiceListRecord(input); if (Result == null) { return(NotFound(new ResponseViewModel { Message = "No data found", StatusCode = 404, status = false })); } model.StatusCode = 200; model.Message = "Your File Uploaded Successfully"; model.status = true; return(Ok(model)); } catch (Exception) { return(BadRequest(new ResponseViewModel { Message = "Internal server error", StatusCode = 500, status = false })); } }