public IActionResult GetAllCompanies()
 {
     try
     {
         return(Ok(GetCompanies(companyBLL.GetAll().Data)));
     }
     catch (Exception ex)
     {
         return(NotFound(ex.Message));
     }
 }
        ComplaintInsertVM GetComplaintInsertVM(Complaint complaint = null)
        {
            ComplaintInsertVM complaintInsert = new ComplaintInsertVM();

            foreach (Company item in companyBLL.GetAll().Data)
            {
                complaintInsert.Companies.Add(new SelectListItem
                {
                    Text  = item.CompanyName,
                    Value = item.ID.ToString()
                });
            }
            if (complaint != null)
            {
                complaintInsert.Title              = complaint.ComplaintTitle;
                complaintInsert.Detail             = complaint.ComplaintDetail;
                complaintInsert.UserID             = complaint.UserID;
                complaintInsert.ComplaintProofFile = complaint.ComplaintProofUrl;
                complaintInsert.IncoiceProofFile   = complaint.ComplaintInvoiceUrl;
                complaintInsert.CompanyID          = complaint.CompanyID;
            }
            return(complaintInsert);
        }