// GET: Camera public ActionResult Index() { CameraRepository r = new CameraRepository(); List <CameraModel> camere = r.GetAll(); return(View(camere)); }
public IEnumerable <Camera> GetAllCameras() { var cameras = cameraRepository.GetAll(); return(mapper.Map <IEnumerable <Camera> >(cameras)); }