Exemple #1
0
        public ActionResult AwardUserByUrl(string userId_awardId)
        {
            var answer = bllModel.AwardUserByUrl(userId_awardId);

            if (!answer)
            {
                return(HttpNotFound());
            }

            return(RedirectToAction("Index", "Users"));
        }
Exemple #2
0
        public IHttpActionResult Reward(string userId_awardId)
        {
            var answer = bllModel.AwardUserByUrl(userId_awardId);

            if (!answer)
            {
                return(BadRequest("User already has award"));
            }

            return(Ok());
        }