public async Task <IActionResult> Set(string code) { var promocode = await _repo.GetPromocode(code); if (promocode == null) { return(new NotFoundResult()); } await _repo.ApplyPromocode(promocode); return(new OkResult()); }
public async Task <IActionResult> Set(string code) { var promocode = await _repo.GetPromocode(code); if (promocode == null) { return(new NotFoundResult()); } await _repo.ApplyPromocode(promocode); return(new OkResult()); }