public ActionResult <WorkOrder> GetById(int id) { try { var workOrder = db.GetById(id); return(workOrder); } catch (Exception) { throw; } }