protected void Log(Exception ex)
        {
            Error model = new Error();

            model.Message    = ex.Message;
            model.Stacktrace = ex.StackTrace;
            model.CreateDate = DateTime.Now;
            model.Status     = false;
            _errorService.CreateNew(model);
            _errorService.CommitChanges();
        }