public bool Delete(Observacion entity)
 {
     try
     {
         var entityDAL = new InmDAL.Observaciones();
         entityDAL.ObservacionesId = entity.ObservacionesId;
         var response = genericDal.Delete(entityDAL);
         return(response);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
 public bool Update(Observacion entity)
 {
     try
     {
         var entityDAL = new InmDAL.Observaciones();
         entityDAL.Descripcion = entity.Descripcion;
         entityDAL.Fecha       = entity.Fecha;
         var response = genericDal.Update(entityDAL);
         return(response);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
        public int Add(Observacion entity)
        {
            try
            {
                var entityDAL = new InmDAL.Observaciones();
                entityDAL.ContratosId = entity.ContratosId.ToString();
                entityDAL.Descripcion = entity.Descripcion;
                entityDAL.Fecha       = entity.Fecha;
                var response = genericDal.Add(entityDAL);

                return(response);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }