public ActionResult Create(FullcalendarModel fullcalendarModel)
        {
            if (ModelState.IsValid)
            {
                // create a new pdf document
                PdfDocument doc = new PdfDocument();

                // add a new page to the document
                PdfPage page = doc.AddPage();

                // create a new pdf font
                PdfFont font = doc.AddFont(PdfStandardFont.Helvetica);
                font.Size = 15;

                // create a new text element and add it to the page
                PdfTextElement text = new PdfTextElement(50, 50, fullcalendarModel.title.ToString() + "\n" + fullcalendarModel.address.ToString() + "\n" + fullcalendarModel.description.ToString() + "\n" + fullcalendarModel.date.ToString() + "\n" + "Signature:_________________________________" + "\n" + "Total:______________________" + "\n" + "Tax:______________________" + "\n" + "Subtotal:______________________", font);
                page.Add(text);
                doc.Save("C:/Users/Charles/Documents/Visual Studio 2015/Projects/CiezkiCapStone/CCiezkiCapstone/CCiezkiCapstone/Invoices/" + fullcalendarModel.title.ToString() + ".pdf");
                // save pdf document
                //doc.Save("~/Sample.pdf");

                // close pdf document
                doc.Close();

                db.FullcalendarModel.Add(fullcalendarModel);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(fullcalendarModel));
        }
        public ActionResult DeleteConfirmed(int id)
        {
            FullcalendarModel fullcalendarModel = db.FullcalendarModel.Find(id);

            db.FullcalendarModel.Remove(fullcalendarModel);
            db.SaveChanges();
            return(RedirectToAction("AdminIndex"));
        }
 public ActionResult Edit([Bind(Include = "event_id,title,date,start,address,description")] FullcalendarModel fullcalendarModel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(fullcalendarModel).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("AdminIndex"));
     }
     return(View(fullcalendarModel));
 }
        // GET: Fullcalendar/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            FullcalendarModel fullcalendarModel = db.FullcalendarModel.Find(id);

            if (fullcalendarModel == null)
            {
                return(HttpNotFound());
            }
            return(View(fullcalendarModel));
        }