public ActionResult <IEnumerable <WorkOrderTaskView> > GetAllTasks()
 {
     try
     {
         var tasks = db.SelectAllTasks();
         return(tasks.ToList());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }