Exemplo n.º 1
0
 protected bool Deactivate(IVideoType entity)
 {
     // Deactivate it
     VideoTypesRepository.Deactivate(entity);
     // Try to Save Changes
     VideoTypesRepository.SaveChanges();
     // Finished!
     return(true);
 }
Exemplo n.º 2
0
 protected bool Remove(IVideoType entity)
 {
     if (entity == null)
     {
         return(true);
     }                                    // No entity found to remove, consider it passed
     // Remove it
     VideoTypesRepository.Remove(entity);
     // Try to Save Changes
     VideoTypesRepository.SaveChanges();
     // Finished!
     return(true);
 }
 protected bool Remove(IVideoType entity)
 {
     if (entity == null) { return true; } // No entity found to remove, consider it passed
     // Remove it
     VideoTypesRepository.Remove(entity);
     // Try to Save Changes
     VideoTypesRepository.SaveChanges();
     // Finished!
     return true;
 }
 protected bool Deactivate(IVideoType entity)
 {
     // Deactivate it
     VideoTypesRepository.Deactivate(entity);
     // Try to Save Changes
     VideoTypesRepository.SaveChanges();
     // Finished!
     return true;
 }
 public void Update(IVideoType entity)
 {
     Context.SetModified(entity);
 }
 public void Remove(IVideoType entity)
 {
     Context.VideoTypes.Remove((VideoType)entity);
 }
 public void Deactivate(IVideoType entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public void Add(IVideoType entity)
 {
     Context.VideoTypes.Add((VideoType)entity);
 }
Exemplo n.º 9
0
 public void Update(IVideoType entity)
 {
     Context.SetModified(entity);
 }
Exemplo n.º 10
0
 public void Deactivate(IVideoType entity)
 {
     entity.Active = false;
     Update(entity);
 }
Exemplo n.º 11
0
 public void Remove(IVideoType entity)
 {
     Context.VideoTypes.Remove((VideoType)entity);
 }
Exemplo n.º 12
0
 public void Add(IVideoType entity)
 {
     Context.VideoTypes.Add((VideoType)entity);
 }