public void GetWorkouttracker_By_Id()
        {
            WorkOutDb obj = new WorkOutDb();
            string    actualworkOutTitle   = obj.GetById(1).WorkOutTitle;
            string    expectedWorkOutTitle = "test Workout Tracker";

            Assert.AreEqual(actualworkOutTitle, expectedWorkOutTitle);
        }
 public IHttpActionResult Get(int id)
 {
     try
     {
         return(Ok(dao.GetById(id)));
     }
     catch (Exception ex)
     {
         return(BadRequest("Error Occurred" + ex.InnerException.ToString()));
     }
 }