public bool Delete()
 {
     try
     {
         Data.HORA hour = Connection.LindaSonrisaDB.HORA.First(re => re.FECHA_HORA == DateHour);
         Connection.LindaSonrisaDB.HORA.Remove(hour);
         Connection.LindaSonrisaDB.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public bool Read()
 {
     try
     {
         Data.HORA hour = Connection.LindaSonrisaDB.HORA.First(re => re.FECHA_HORA == DateHour);
         DateHour       = hour.FECHA_HORA;
         Id             = (int)hour.ID;
         RutFunctionary = (int)hour.RUT_FUNCIONARIO;
         RutClient      = (int)hour.RUT_CLIENTE;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public bool Update()
 {
     try
     {
         Data.HORA hour = Connection.LindaSonrisaDB.HORA.First(re => re.FECHA_HORA == DateHour);
         hour.FECHA_HORA      = DateHour;
         hour.RUT_FUNCIONARIO = RutFunctionary;
         hour.RUT_CLIENTE     = RutClient;
         Connection.LindaSonrisaDB.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public bool Create()
 {
     try
     {
         Data.HORA hour = new Data.HORA();
         hour.ID              = SequencerController.GetNextVal("SEQ_ID_HORA");
         hour.FECHA_HORA      = DateHour;
         hour.RUT_FUNCIONARIO = RutFunctionary;
         hour.RUT_CLIENTE     = RutClient;
         Connection.LindaSonrisaDB.HORA.Add(hour);
         Connection.LindaSonrisaDB.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }