public void ForbiddenResource() { using (UserManager <Client, int> manager = new ClientUserManager(new CustomUserStore(ctx))) { Assert.IsNull(repo.GetPaymentTypeById(1, manager.FindByEmail("*****@*****.**").Id)); } }
public IActionResult GetSinglePaymentTypeById(int paymentId) { var paymentType = _paymentTypeRepository.GetPaymentTypeById(paymentId); if (paymentType == null) { return(NotFound("No such payment type found")); } return(Ok(paymentType)); }