public IActionResult GetType(int id) { if (id == default) { throw new ArgumentException($"{nameof(id)} can not be 0"); } var type = _service.GetProjectTypeById(id); return(Ok(type)); }
public IActionResult GetType(int id) { if (id == default) { throw new ArgumentException($"{nameof(id)} can not be 0"); } var type = _service.GetProjectTypeById(id); return(Ok(type)); }