public void CreateAndRemove(List <ModuloRolModel> create, List <int> remove) { moduleRolService = moduleRolService ?? new ModuloRol(); List <SAX_MODULO_ROL> modelA = Mapper.Map <List <ModuloRolModel>, List <SAX_MODULO_ROL> >(create); moduleRolService.CreateAndRemove(modelA, remove); }
public ModuloRolService(IModuloRol srvModuleRole) : this(new ModuloRol()) { moduleRolService = srvModuleRole; }