public IActionResult EditStatus(SpeedEditStatusViewModel speed) { SpeedBusiness speedBusiness = new SpeedBusiness(); var result = speedBusiness.EditStatus(speed); return(Ok(result)); }
public IActionResult Delete(SpeedDeleteViewModel speed) { SpeedBusiness speedBusiness = new SpeedBusiness(); var result = speedBusiness.Delete(speed); return(Ok(result)); }
public IActionResult GetById(int Id) { SpeedBusiness speedBusiness = new SpeedBusiness(); var result = speedBusiness.GetById(Id); return(Ok(result)); }
public IActionResult Add(AddSpeedViewModel speed) { SpeedBusiness speedBusiness = new SpeedBusiness(); var result = speedBusiness.AddSpeed(speed); return(Ok(result)); }
public IActionResult GetAll() { SpeedBusiness speedBusiness = new SpeedBusiness(); var result = speedBusiness.GetAll(); return(Ok(result)); }
public IActionResult GetPaging(BaseCondition <Speed> condition) { SpeedBusiness speedBusiness = new SpeedBusiness(); var result = speedBusiness.GetAllSpeedSearched(condition); return(Ok(result)); }