コード例 #1
0
        public SingleRsp DeleteWeekday(WeekdayReq wd)
        {
            var     res     = new SingleRsp();
            Weekday weekday = new Weekday();

            weekday.Id   = wd.Id;
            weekday.Name = wd.Name;
            res          = _rep.DeleteWeekday(weekday);
            return(res);
        }
コード例 #2
0
        public IActionResult DeleteWeekday([FromBody] WeekdayReq req)
        {
            var res = _svc.DeleteWeekday(req);

            return(Ok(res));
        }