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)); }
public void Save(LocationMappingDto Dto, Login userLogin) { var db = Mapper.Map <MST_LOCATION_MAPPING>(Dto); _locationMappingService.Save(db, userLogin); }