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

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

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

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

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

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

            return(Ok(result));
        }