Exemplo n.º 1
0
 private void CreateCP(int order, int motherId)
 {
     string[] pluggIds = txtAddPlugg.Text.Trim().Split(',');
     BaseHandler bh = new BaseHandler();
     for (int i = 0; i < pluggIds.Length; i++)
     {
         CoursePluggEntity newCP = new CoursePluggEntity();
         newCP.CourseId = CourseId;
         newCP.MotherId = motherId;
         newCP.CreatedByUserId = UserId;
         newCP.PluggId = Convert.ToInt32(pluggIds[i]);
         newCP.CPOrder = order+i;
         bh.CreateCP(newCP);
     }
     txtAddPlugg.Text = "";
     lblPluggInfo.Text = "";
     BindTree();
 }