public bool Delete_Loaisach(Entities.tblLoaiSach ls) { bool kt = false; string sql = "Prd_LoaiSach_Delete"; try { con = ds.getConnect(); cmd = new SqlCommand(sql, con); con.Open(); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@MaL", SqlDbType.NVarChar).Value = ls.MaloaiS1; cmd.ExecuteNonQuery(); kt = true; } catch (Exception) { } finally { cmd.Dispose(); con.Close(); } return(kt); }
public bool Update_LoaiSach(Entities.tblLoaiSach s) { return(dal.Update_loaiSach(s)); }
public bool Delete_LoaiSach(Entities.tblLoaiSach s) { return(dal.Delete_Loaisach(s)); }
public bool insert_LoaiSach(Entities.tblLoaiSach s) { return(dal.Insert_loaiSach(s)); }