示例#1
0
 private void Insert([Inject] IRoleDal dal)
 {
     using (BypassPropertyChecks)
     {
         var item = new ProjectTracker.Dal.RoleDto
         {
             Name = this.Name
         };
         dal.Insert(item);
         Id        = item.Id;
         TimeStamp = item.LastChanged;
     }
 }
 public EntityResult Insert(Role model)
 {
     try
     {
         if (_roleDal.Insert(model))
         {
             return(new EntityResult("Başarılı", ResultState.Success));
         }
         return(new EntityResult("Hata Oluştu ", ResultState.Warning));
     }
     catch (Exception ex)
     {
         return(new EntityResult("Database hatası " + ex.ToInnestException().Message, ResultState.Error));
     }
 }
示例#3
0
 public void RoleAdd(Role role)
 {
     _roleDal.Insert(role);
 }
 public void Insert(Role role)
 {
     _roleDal.Insert(role);
 }