public ActionResult <WorkOrderTaskView> GetTaskById(int id) { try { var task = db.GetTaskById(id); return(task); } catch (Exception) { throw; } }