public ActionResult Index() { var mechanic = new MechanicViewModel() { mechaniclist = _mechanicManager.GetAllMechanic() }; Log.Info("Mechanic listing Successffuly"); return(View(mechanic)); }
// GET: Mechanic public ActionResult Index() { IEnumerable <MechanicViewModel> mechanic = _mechanicManager.GetAllMechanic().Reverse(); return(View(mechanic)); }