예제 #1
0
//

        public SingleRsp CreateDiem(DiemReq d)
        {
            var  res  = new SingleRsp();
            Diem diem = new Diem();

            diem.MaDiem       = d.MaDiem;
            diem.SoBaoDanh    = d.SoBaoDanh;
            diem.MaSoGd       = d.SoBaoDanh.Substring(0, 2);
            diem.DiemToan     = d.DiemToan;
            diem.DiemVan      = d.DiemVan;
            diem.DiemNgoaiNgu = d.DiemNgoaiNgu;
            diem.DiemHoa      = d.DiemHoa;
            diem.DiemLy       = d.DiemLy;
            diem.DiemSinh     = d.DiemSinh;
            diem.DiemDia      = d.DiemDia;
            diem.DiemSu       = d.DiemSu;
            diem.DiemGdcd     = d.DiemGdcd;
            res = _rep.CreateDiem(diem);
            return(res);
        }
        public IActionResult UpdateDiem([FromBody] DiemReq req)
        {
            var res = _svc.UpdateDiem(req);

            return(Ok(res));
        }