Beispiel #1
0
        public IActionResult EditStatus(SpeedEditStatusViewModel speed)
        {
            SpeedBusiness speedBusiness = new SpeedBusiness();
            var           result        = speedBusiness.EditStatus(speed);

            return(Ok(result));
        }
Beispiel #2
0
        public IActionResult Delete(SpeedDeleteViewModel speed)
        {
            SpeedBusiness speedBusiness = new SpeedBusiness();
            var           result        = speedBusiness.Delete(speed);

            return(Ok(result));
        }
Beispiel #3
0
        public IActionResult GetById(int Id)
        {
            SpeedBusiness speedBusiness = new SpeedBusiness();
            var           result        = speedBusiness.GetById(Id);

            return(Ok(result));
        }
Beispiel #4
0
        public IActionResult Add(AddSpeedViewModel speed)
        {
            SpeedBusiness speedBusiness = new SpeedBusiness();
            var           result        = speedBusiness.AddSpeed(speed);

            return(Ok(result));
        }
Beispiel #5
0
        public IActionResult GetAll()
        {
            SpeedBusiness speedBusiness = new SpeedBusiness();
            var           result        = speedBusiness.GetAll();

            return(Ok(result));
        }
Beispiel #6
0
        public IActionResult GetPaging(BaseCondition <Speed> condition)
        {
            SpeedBusiness speedBusiness = new SpeedBusiness();
            var           result        = speedBusiness.GetAllSpeedSearched(condition);

            return(Ok(result));
        }