public IActionResult UnitList() { string[] array = new string[_chefService.UnitList().ToArray().Length]; int i = 0; foreach (var item in _chefService.UnitList()) { array[i] = JsonConvert.SerializeObject(item); i++; } return(Ok(array)); }
public IActionResult UnitList() { string[] array = new string[_chefService.UnitList().ToArray().Length]; int i = 0; foreach (var item in _chefService.UnitList()) { array[i] = JsonConvert.SerializeObject(item); i++; } return(Ok(array)); }