public string DependenciaUpdate(string KeySesion, long IdDependencia, string DependenciaName)
 {
     string res = "";
     Cat_Dependencia_Repository DependenciaUpdate = new Cat_Dependencia_Repository();
     try
     {
         DependenciaUpdate.Dependencia_Update(KeySesion,IdDependencia, DependenciaName);
     }
     catch (Exception ex)
     {
         var err = ex.Message;
     }
     return res;
 }
 public ObservableCollection<Cat_Dependencia_Model> Download_Dependencia(string KeySesion)
 {
     ObservableCollection<Cat_Dependencia_Model> result = new ObservableCollection<Cat_Dependencia_Model>();
     try
     {
         using (var repository = new Cat_Dependencia_Repository())
         {
             result = repository.get_Cat_Dependencia(KeySesion.ToString());
         }
     }
     catch (Exception ex)
     {
         var err = ex.Message;
     }
     return result;
 }
 public string DependenciaInsert(string KeySesion, string DependenciaName)
 {
     string res = "";
     Cat_Dependencia_Repository DependenciaInsert = new Cat_Dependencia_Repository();
     try
     {
         DependenciaInsert.Dependencia_Insert(KeySesion, DependenciaName);
     }
     catch (Exception ex)
     {
         var err = ex.Message;
     }
     return res;
 }