public SingleRsp updateHocSinh(HocSinhReq hs) { var res = new SingleRsp(); HocSinh newHS = new HocSinh(); newHS.MaHs = hs.MaHs; newHS.TenHs = hs.TenHs; newHS.MaGv = hs.MaGv; newHS.MaLop = hs.MaLop; newHS.NgaySinh = hs.NgaySinh; newHS.GioiTinh = hs.GioiTinh; newHS.DiaChi = hs.DiaChi; res = _rep.UpdateHocSinh(newHS); // res.Data = newHS; return(res); }
public IActionResult createHocSinh([FromBody] HocSinhReq req) { var res = _svc.createHocSinh(req); return(Ok(res)); }