Example #1
0
        public SingleRsp DeleteLevel(LevelReq lv)
        {
            var   res   = new SingleRsp();
            Level level = new Level();

            level.Id   = lv.Id;
            level.Name = lv.Name;
            res        = _rep.DeleteLevel(level);
            return(res);
        }
Example #2
0
        public IActionResult DeleteLevel([FromBody] LevelReq req)
        {
            var res = _svc.DeleteLevel(req);

            return(Ok(res));
        }