Ejemplo n.º 1
0
 public IActionResult WriteComplaint(int?id)
 {
     if (id != null)
     {
         ComplaintInsertVM complaintInsert = new ComplaintInsertVM();
         foreach (Company item in companyBLL.GetCompaniesBySubCatID(id.Value).Data)
         {
             complaintInsert.Companies.Add(new SelectListItem
             {
                 Text  = item.CompanyName,
                 Value = item.ID.ToString()
             });
         }
         return(View(complaintInsert));
     }
     return(View(GetComplaintInsertVM()));
 }