예제 #1
0
        public ActionResult Adauga(CameraModel camera)
        {
            CameraRepository r = new CameraRepository();

            r.Add(camera);

            return(RedirectToAction("Index"));

            ViewBag.TipCamere = TipCameraSelectie.Selectii();
        }
예제 #2
0
        public void AddCamera(Camera camera)
        {
            var cameraEntity = mapper.Map <CameraEntity>(camera);

            cameraRepository.Add(cameraEntity);
        }