Exemple #1
0
        public bool Add(iPow.Infrastructure.Data.DataSys.Sys_Roles entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null)
            {
                try
                {
                    roleRespoitory.Add(entity);
                    roleRespoitory.Uow.Commit();
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
Exemple #2
0
 public void Add(iPow.Infrastructure.Data.DataSys.Sys_Roles role)
 {
     roleRespoitory.Add(role);
     roleRespoitory.Uow.Commit();
 }