public Category GetById(int id) { var procedure = new ProcedureSql("Get_Category_By_Id"); procedure.AddParameter("@Id", id); return(procedure.Get <Category>(this.FillCategory)); }
public Author GetByName(string name) { var procedure = new ProcedureSql("Get_Author_By_Name"); procedure.AddParameter("@Name", name); return(procedure.Get <Author>(this.FillAuthor)); }
public Post GetById(int id) { var procedure = new ProcedureSql("Get_Post_By_Id"); procedure.AddParameter("@Id", id); return(procedure.Get <Post>(this.FillPost)); }
public Comment GetById(int id) { var procedure = new ProcedureSql("Get_Comment_By_Id"); procedure.AddParameter("@Id", id); return procedure.Get<Comment>(FillComment); }
public Author GetById(int id) { var procedure = new ProcedureSql("Get_Author_By_Id"); procedure.AddParameter("@Id", id); return(procedure.Get <Author>(this.FillAuthor)); }
public Category GetById(int id) { var procedure = new ProcedureSql("Get_Category_By_Id"); procedure.AddParameter("@Id", id); return procedure.Get<Category>(this.FillCategory); }
public Post GetById(int id) { var procedure = new ProcedureSql("Get_Post_By_Id"); procedure.AddParameter("@Id", id); return procedure.Get<Post>(this.FillPost); }
public Author GetByName(string name) { var procedure = new ProcedureSql("Get_Author_By_Name"); procedure.AddParameter("@Name", name); return procedure.Get<Author>(this.FillAuthor); }
public Author GetById(int id) { var procedure = new ProcedureSql("Get_Author_By_Id"); procedure.AddParameter("@Id", id); return procedure.Get<Author>(this.FillAuthor); }
public Comment GetById(int id) { var procedure = new ProcedureSql("Get_Comment_By_Id"); procedure.AddParameter("@Id", id); return(procedure.Get <Comment>(FillComment)); }