Esempio n. 1
0
        public async Task <IActionResult> Create([Bind("EnquiryId,Email,Message")] Enquiry enquiry)
        {
            if (ModelState.IsValid)
            {
                _context.Add(enquiry);
                await _context.SaveChangesAsync();

                return(RedirectToAction("ThankYou"));
            }
            return(RedirectToAction("Index"));
        }
 public async void PostCineplexMovie([FromBody] CineplexMovie cineplexMovie)
 {
     _context.Update(cineplexMovie);
     await _context.SaveChangesAsync();
 }