public OrderDetail FindById(string id) { Int32 realId; if (!Int32.TryParse(id, out realId)) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.NotFound; return(null); } else { return(orderDetailDao.FindById(realId)); } }
public OrderDetail Get(int id) { return(orderDetailDao.FindById(id)); }