Example #1
0
        public IActionResult GetInquiryList(string EmployerId)
        {
            if (EmployerId == null)
            {
                return(NotFound());
            }
            var employeeLst   = _queries.GetAllEmployeesWhereEmployedByIdEquals(EmployerId);
            var justEmployees = new List <EmployeeVM>();

            foreach (var employee in employeeLst)
            {
                var employeeLocal = new EmployeeVM();
                employeeLocal.Name  = employee.Name;
                employeeLocal.Email = employee.Email;
                justEmployees.Add(employeeLocal);
            }
            return(Json(new { data = justEmployees }));
            //;
        }