Ejemplo n.º 1
0
 public Task <List <E_ObjectiveControl> > QueryToOCDg(int Idobjective)
 {
     objCObjectives = new D_CObjetives();
     return(Task.Run(() => {
         return objCObjectives.Query_ControlO_Dg(Idobjective);
     }));
 }
Ejemplo n.º 2
0
        public bool B_CreateCObjective(E_ObjectiveControl OControl)
        {
            if (String.IsNullOrEmpty(OControl.Meta))
            {
                throw new Exception("El campo de texto de valor objetivo está vacío, por favor intente de nuevo.");
            }
            objCObjectives = new D_CObjetives();

            return(objCObjectives.InsertControlObj(OControl));
        }
Ejemplo n.º 3
0
 public void B_UpdateOControl(E_ObjectiveControl objectiveControl)
 {
     if (String.IsNullOrEmpty(objectiveControl.Meta))
     {
         throw new Exception("El campo de texto de valor objetivo está vacío, por favor intente de nuevo.");
     }
     try
     {
         objCObjectives = new D_CObjetives();
         objCObjectives.UpdateControlObj(objectiveControl);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }