public IActionResult GetAll([FromForm] int id) { var result = _carImageManager.GetAllList(id); if (result.Success) { return(Ok(result.Data)); } return(BadRequest()); }
public IActionResult GetAll() { var result = _carImageManager.GetAllList(); if (result.Success) { return(Ok(result)); } return(BadRequest(result.Message)); }