public int SetPaymentStatus(Guid guid) { int res = 0; try { UserRepository objUserRepository = new UserRepository(); User user = new Domain.User(); user.Id = guid; user.PaymentStatus = "paid"; res=objUserRepository.UpdatePaymentStatusByUserId(user); } catch (Exception ex) { Console.WriteLine("Error : " + ex.StackTrace); } return res; }