public IHttpActionResult GetById(int id) { var data = _objContext.GetProductByID(id); if (data == null) { return(NotFound()); } return(Ok(data)); }