public HttpResponseMessage GetDanhSachHP([FromBody] object info)
        {
            HttpResponseMessage resmsg;

            if (info == null)
            {
                resmsg = Request.CreateResponse(HttpStatusCode.BadRequest, JsonConvert.SerializeObject(
                                                    new { error = 0 }));
            }
            else
            {
                try
                {
                    var obj  = JObject.Parse(info.ToString());
                    var mssv = obj["mssv"].ToObject <int>();

                    IInfoDiemDanhService idds = new InfoDiemDanhService();

                    var result = idds.GetDanhSachHP(mssv);
                    resmsg = Request.CreateResponse(HttpStatusCode.OK, result);
                } catch (Exception ex)
                {
                    resmsg = Request.CreateResponse(HttpStatusCode.InternalServerError);
                }
            }

            return(resmsg);
        }
        public void TestGetDanhSachHP_KhongKetQua()
        {
            IInfoDiemDanhService idds = new InfoDiemDanhService();
            var  danhsach             = idds.GetDanhSachHP(0);
            bool result = false;

            if (danhsach.Count > 0)
            {
                result = true;
            }
            Assert.IsFalse(result, "Lỗi: TestGetDanhSachHP_KhongKetQua: trả về kết quả.");
        }