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); }
public IActionResult DeleteLevel([FromBody] LevelReq req) { var res = _svc.DeleteLevel(req); return(Ok(res)); }