public void SaveError(Model.Custom.CustomErrorException exception)
 {
     using (var service = new MoneyGramWebServiceClient.MoneyGramWebServiceClient())
     {
         service.SaveError(exception);
     }
 }
        public void SaveError(Model.Custom.CustomErrorException exception)
        {
            using (var dal = new DalWrapper())
            {
                var errorInfo = new Model.ErrorLog
                {
                    ErrorMessage = exception.ExceptionInfo,
                    DateCreated  = DateTime.Now,
                    UserName     = exception.UserName,
                    ComputerName = exception.ComputerName,
                    ProgramName  = exception.ProgramName
                };

                dal.ErrorLogs.Add(errorInfo);
                dal.SaveChanges();
            }
        }