public string Cat_SistemaUpdate(string KeySesion, long IdSistema, string SistemaName) { string res = ""; Cat_Sistema_Repository Cat_SistemaUpdate = new Cat_Sistema_Repository(); try { Cat_SistemaUpdate.Cat_Sistema_Update(KeySesion,IdSistema, SistemaName); } catch (Exception ex) { var err = ex.Message; } return res; }
public ObservableCollection<Cat_Sistema_Model> Download_CatSistema(string KeySesion) { ObservableCollection<Cat_Sistema_Model> result = new ObservableCollection<Cat_Sistema_Model>(); try { using (var repository = new Cat_Sistema_Repository()) { result = repository.get_Cat_Sistema(KeySesion.ToString()); } } catch (Exception ex) { var err = ex.Message; } return result; }
public string Cat_SistemaInsert(string KeySesion, string SistemaName) { string res = ""; Cat_Sistema_Repository Cat_SistemaInsert = new Cat_Sistema_Repository(); try { Cat_SistemaInsert.Cat_Sistema_Insert(KeySesion, SistemaName); } catch (Exception ex) { var err = ex.Message; } return res; }