public ActionResult EditOption(ReportOptionModel model)
 {
     using (Muse db = new Muse())
     {
         int flag = db.Update(model, true);
         if (flag > 0)
         {
             return(RedirectToAction("Details", new { id = model.ReportPageModelId }));
         }
         else
         {
             return(View());
         }
     }
 }
        public ActionResult AddOption(ReportOptionModel model)
        {
            using (Muse db = new Muse())
            {
                model.Id = Guid.NewGuid();

                int flag = db.Add(model, true);
                if (flag > 0)
                {
                    return(RedirectToAction("Details", new { id = model.ReportPageModelId }));
                }
                else
                {
                    return(View());
                }
            }
        }