public async Task <IActionResult> Create() { var brands = await _brandServices.GetAll(0, 0); var vehicle = new VehicleInput() { Brands = GetBrandsItems(brands) }; return(View(vehicle)); }
public IActionResult GetAll() { var result = _brandServices.GetAll(); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }