Exemple #1
0
 public void ForbiddenResource()
 {
     using (UserManager <Client, int> manager = new ClientUserManager(new CustomUserStore(ctx)))
     {
         Assert.IsNull(repo.GetPaymentTypeById(1, manager.FindByEmail("*****@*****.**").Id));
     }
 }
Exemple #2
0
        public IActionResult GetSinglePaymentTypeById(int paymentId)
        {
            var paymentType = _paymentTypeRepository.GetPaymentTypeById(paymentId);

            if (paymentType == null)
            {
                return(NotFound("No such payment type found"));
            }

            return(Ok(paymentType));
        }