public SingleRsp UpdateCtmuontra(CtmuontraReq ct) { var res = new SingleRsp(); Ctmuontra chitiet = new Ctmuontra(); chitiet.DaTra = ct.DaTra; chitiet.Ngaytra = ct.Ngaytra; chitiet.GhiChu = ct.GhiChu; res = _rep.UpdateCtmuontra(chitiet); return(res); }
public SingleRsp DeleteCtmuontra(CtmuontraReq ct) { var res = new SingleRsp(); Ctmuontra chitiet = new Ctmuontra(); chitiet.MaMt = ct.MaMt; chitiet.MaSach = ct.MaSach; chitiet.DaTra = ct.DaTra; chitiet.Ngaytra = ct.Ngaytra; chitiet.GhiChu = ct.GhiChu; res = _rep.DeleteCtmuontra(chitiet); return(res); }
public IActionResult DeleteCtmuontra([FromBody] CtmuontraReq req) { var res = _svc.DeleteCtmuontra(req); return(Ok(res)); }