/// <summary>
        /// this method is used to create a success resoponse with successStatus class object for early return situations
        /// </summary>
        /// <param name="code">status code</param>
        /// <param name="data">data for response</param>
        /// <returns>it will return a success response with particular statusCode</returns>
        public static HttpResponseMessage CreateSuccessResponse(HttpStatusCode code, object data)
        {
            var successStatus = new SuccessStatusDto {
                Data = data
            };

            return(CreateResponse(code, successStatus));
        }
        /// <summary>
        /// this method is used to create a success resoponse with successStatus class object for early return situations
        /// </summary>
        /// <param name="code">status code</param>
        /// <param name="data">data for response</param>
        /// <param name="records">records for pagination</param>
        /// <returns>it will return a success response with particular statusCode</returns>
        public static HttpResponseMessage CreateCompleteSuccessResponse(HttpStatusCode code, object data, RecordsDto records)
        {
            var successStatus = new SuccessStatusDto()
            {
                Data = data, Record = records
            };

            return(CreateResponse(code, successStatus));
        }