public Role FindById(long Id) { var conn = Arranger.GetConnection(); Role role = conn.Get <Role>(Id); return(role); }
public void Delete(long Id) { var conn = Arranger.GetConnection(); Permission perm = conn.Get <Permission>(Id); conn.Delete(perm); }
public void Delete(long Id) { var conn = Arranger.GetConnection(); Role role = conn.Get <Role>(Id); conn.Delete(role); }
public void Update(Permission model) { var conn = Arranger.GetConnection(); conn.Update(model); }
public void Insert(Permission model) { var conn = Arranger.GetConnection(); conn.Insert(model); }
public IEnumerable <Permission> GetAll() { var conn = Arranger.GetConnection(); return(conn.GetAll <Permission>()); }
public Permission FindById(long Id) { var conn = Arranger.GetConnection(); return(conn.Get <Permission>(Id)); }
public void Update(Role model) { var conn = Arranger.GetConnection(); conn.Update(model); }
public void Insert(Role model) { var conn = Arranger.GetConnection(); conn.Insert(model); }
public IEnumerable <Role> GetAll() { var conn = Arranger.GetConnection(); return(conn.GetAll <Role>()); }
public void Delete(Role model) { var conn = Arranger.GetConnection(); conn.Delete(model); }