public IActionResult Post([FromBody] Vote model)
 {
     if (ModelState.IsValid)
     {
         var response = Services.AddVote(model);
         if (response == true)
         {
             return(Accepted());
         }
         return(BadRequest());
     }
     return(BadRequest());
 }
        public IActionResult FinalVote(int catId, int nomId)
        {
            var newModel = new Vote()
            {
                CategoryId    = catId,
                NomineeId     = nomId,
                PhoneIPAdress = iPAddress.GetIPAddress()
            };
            var result = Services.AddVote(newModel);

            if (result == true)
            {
                return(RedirectToAction("Index", "Vote"));
            }
            return(BadRequest($"Award Category already voted for!"));
        }