Пример #1
0
        // GET: Camera
        public ActionResult Index()
        {
            CameraRepository   r      = new CameraRepository();
            List <CameraModel> camere = r.GetAll();

            return(View(camere));
        }
Пример #2
0
        public IEnumerable <Camera> GetAllCameras()
        {
            var cameras = cameraRepository.GetAll();

            return(mapper.Map <IEnumerable <Camera> >(cameras));
        }