AssocManyToMany.Controllers.Manager.JobDutyGetAllWithEmployees C# (CSharp) Метод

JobDutyGetAllWithEmployees() публичный Метод

public JobDutyGetAllWithEmployees ( ) : IEnumerable
Результат IEnumerable
        public IEnumerable<JobDutyWithEmployees> JobDutyGetAllWithEmployees()
        {
            return Mapper.Map<IEnumerable<JobDutyWithEmployees>>
                (ds.JobDuties.Include("Employees").OrderBy(j => j.Name));
        }

Usage Example

 // GET: Matches/ByJobDutyMore
 public ActionResult ByJobDutyMore()
 {
     return(View(m.JobDutyGetAllWithEmployees()));
 }