public void Regjistro(Ndeshja g) { try { NdeshjaDAL dal = new NdeshjaDAL(); dal.Shto(g); } catch (Exception ex) { throw ex; } }
public void Edito(Ndeshja g) { try { NdeshjaDAL dal = new NdeshjaDAL(); dal.Update(g); } catch (Exception) { throw; } }
public DataTable ShfaqListenENdeshjeve() { try { NdeshjaDAL dal = new NdeshjaDAL(); var r = dal.GetAll(); return(r); } catch (Exception ex) { throw ex; } }
public int GjejNdeshjenMeID(Ndeshja g) { try { NdeshjaDAL dal = new NdeshjaDAL(); dal.MerrNdeshjeMeID(g); int rowsAffected = g.NdeshjaID; return(rowsAffected); } catch (Exception ex) { throw ex; } }
public int Fshij(Ndeshja g) { try { NdeshjaDAL dal = new NdeshjaDAL(); dal.Fshij(g); int rowsAffected = g.NdeshjaID; return(rowsAffected); } catch (Exception ex) { throw ex; } }