public void addBienBanViPham() { BienBanViPham bienBanViPham = new BienBanViPham() { TongTien = 0, TongDiemTru = 0, ThoiGianViPham = new DateTime(2021, 1, 15), BangLai_id = 2 }; Assert.AreNotEqual(null, bienBanViPhamRepository.addBienBanViPham(bienBanViPham)); }
// POST api/loaixe public bool Post([FromBody] BienBanViPham bienBanViPham) { return(bienBanViPhamRepository.addBienBanViPham(bienBanViPham)); }
//Thêm biên bản vi phạm /* * { * "TongTien":0, * "TongDiemTru":0, * "ThoiGianViPham":"15/1/2021", * "BangLai_id":2 * } */ public BienBanViPham Post(BienBanViPham bienBanViPham) { return(bienBanViPhamRepository.addBienBanViPham(bienBanViPham)); }