public HttpResponseMessage AllPreviouseExerciseDetailsByWorkOutId(Int64 WorkOutId)
        {
            all_EditExerciseResponseModel result = new all_EditExerciseResponseModel();

            FResponse res = new FResponse();

            try
            {
                var    headers = Request.Headers;
                string token   = headers.Authorization.Parameter.ToString();
                Int64  userId  = _objFriendFitDBEntity.Database.SqlQuery <Int64>("select UserId from UserToken where TokenCode={0}", token).FirstOrDefault();

                // result = _objIExerciseRepository.AllPreviouseExerciseDetailsByWorkOutId(WorkOutId, userId);


                result = _objIExerciseRepository.AllPreviouseExerciseDetailsByWorkOutId(WorkOutId, userId);


                //result.Response.editExercise.weightList = _objIExerciseRepository.WeightExerciseList(result.Response.editExercise.ExerciseSetId).ToList(); ;
                if (result.Response != null)
                {
                    result.Response.StatusCode = Convert.ToInt32(HttpStatusCode.OK);
                    result.Response.Message    = "Success!!";
                }
                else
                {
                    result.Response.StatusCode = Convert.ToInt32(HttpStatusCode.NotFound);
                    result.Response.Message    = "No Records";
                }
            }
            catch (Exception ex)
            {
                res.StatusCode = Convert.ToInt32(HttpStatusCode.BadRequest);
                _response      = Request.CreateResponse(HttpStatusCode.InternalServerError, "Some error occurred");
            }
            _response = Request.CreateResponse(HttpStatusCode.OK, result);
            return(_response);
        }