Inheritance: AggregateRoot, IAudited, ISoftDelete
Ejemplo n.º 1
0
 public void AddorUpdate(Role entity)
 {
     var model = RoleRepository.Find(entity.Id);
     if (model == null)
     {
         //AddBefore(entity);
         RoleRepository.Add(entity);
     }
     else
     {
         //UpdateBefore(entity);
         //model.Id = entity.Id;
         model.Name = entity.Name;
         model.Description = entity.Description;
         model.IsAdmin = entity.IsAdmin;
         model.Enabled = entity.Enabled;
         //model.Version = entity.Version;
     }
 }