예제 #1
0
        public ActionResult Index()
        {
            var dto   = new LocationMappingDto();
            var data  = _locationMappingBLL.GetLocationMapping();
            var model = new LocationMappingModel();

            model.Details           = Mapper.Map <List <LocationMappingItem> >(data);
            model.MainMenu          = _mainMenu;
            model.CurrentLogin      = CurrentUser;
            model.CurrentPageAccess = CurrentPageAccess;
            return(View(model));
        }
예제 #2
0
        public void Save(LocationMappingDto Dto, Login userLogin)
        {
            var db = Mapper.Map <MST_LOCATION_MAPPING>(Dto);

            _locationMappingService.Save(db, userLogin);
        }