public IActionResult GetByParent(long parent) { try { return(Ok(_asmRepo.GetByParent(parent))); } catch (ParameterNullException e) { return(BadRequest(e.Message)); } }
public IEnumerable <IAssemblyDto> GetByParent(long parent) { return(_assemRepo.GetByParent(parent)); }