public IHttpActionResult GetInstrucitonsByProductId(int productId) { var instructions = instructionService.GetAllByProductId(productId); if (instructions == null) { return(NotFound()); } return(Ok(instructions)); }