private List <ExceptionModel> ValidateModels(object values)
        {
            var exceptions = new List <ExceptionModel>();

            if (!TryValidateModel(values))
            {
                foreach (var value in ModelState.Values.Where(mod => mod.ValidationState == ModelValidationState.Invalid))
                {
                    var    exception = new ExceptionModel();
                    string message   = "An error occured while adding value => ";

                    foreach (var errorMessage in value.Errors)
                    {
                        message += $"{errorMessage.ErrorMessage} ; ";
                    }
                    exception.AddErrorMessage(message);

                    exceptions.Add(exception);
                }
            }

            return(exceptions);
        }