public Subjects GetSubjectById(string id = "", string status = "") { Subjects sub = CBO.FillObject <Subjects>(DataProvider.Instance.ExecuteReader("sp_getSubjectById", id, status)); return(sub); }
public bool Update(Subjects sub) { int result = DataProvider.Instance.ExecuteNonQuery("sp_updateSubjects", sub.ID, sub.Name, sub.Description, sub.Status); return(result > 0); }