public void UpdateUserReference(User objUser) { try { UserRepository objUserRepository = new UserRepository(); objUser.ReferenceStatus = "1"; objUserRepository.UpdateReferenceUserByUserId(objUser); } catch (Exception ex) { Console.WriteLine(ex.Message); logger.Error(ex.Message); } }