Esempio n. 1
0
        public SingleRsp DeleteTheloai(TheloaiReq tl)
        {
            var     res     = new SingleRsp();
            Theloai theloai = new Theloai();

            theloai.MaTl  = tl.MaTl;
            theloai.TenTl = tl.TenTl;
            res           = _rep.DeleteTheloai(theloai);
            return(res);
        }
        public IActionResult DeleteTheloai([FromBody] TheloaiReq req)
        {
            var res = _svc.DeleteTheloai(req);

            return(Ok(res));
        }