public ActionResult CardViewPartialUpdate([ModelBinder(typeof(DevExpressEditorsBinder))] DevExtremeMvcApp2.Models.view_uebersicht item)
        {
            var model = db.view_uebersicht;

            if (ModelState.IsValid)
            {
                try
                {
                    var modelItem = model.FirstOrDefault(it => it.Id == item.Id);
                    if (modelItem != null)
                    {
                        this.UpdateModel(modelItem);
                        db.SaveChanges();
                    }
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_CardViewPartial", model.ToList()));
        }
        public ActionResult CardViewPartialAddNew([ModelBinder(typeof(DevExpressEditorsBinder))] DevExtremeMvcApp2.Models.view_uebersicht item)
        {
            var model = db.view_uebersicht;

            if (ModelState.IsValid)
            {
                try
                {
                    model.Add(item);
                    db.SaveChanges();
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_CardViewPartial", model.ToList()));
        }