public void DeleteGroupChannel(t_GroupChannel groupChannel)
 {
     try
     {
         groupChannelRepository.DeleteGroupChannel(groupChannel);
     }
     catch (Exception ex)
     {
         //
         throw ex;
     }
 }
 public void UpdateGroupChannel(t_GroupChannel groupChannel, t_GroupChannel origGroupChannel)
 {
     try
     {
         groupChannelRepository.UpdateGroupChannel(groupChannel, origGroupChannel);
     }
     catch (Exception ex)
     {
         //
         throw ex;
     }
 }
 public void DeleteGroupChannel(t_GroupChannel group)
 {
     try
     {
         context.t_GroupChannel.Attach(group);
         context.t_GroupChannel.Remove(group);
         context.SaveChanges();
     }
     catch (Exception ex)
     {
         //
         throw ex;
     }
 }
 public void InsertGroupChannel(t_GroupChannel group)
 {
     try
     {
         group.Status = 1;
         context.t_GroupChannel.Add(group);
         context.SaveChanges();
     }
     catch (Exception ex)
     {
         //
         throw ex;
     }
 }
 public void UpdateGroupChannel(t_GroupChannel group, t_GroupChannel origGroup)
 {
     try
     {
         context.t_GroupChannel.Attach(origGroup);
         origGroup.GroupChannel = group.GroupChannel;
         origGroup.Description  = group.Description;
         context.SaveChanges();
     }
     catch (Exception ex)
     {
         //
         throw ex;
     }
 }