public ActionResult AddElementType(DataModel model) { Guid id = ElementTypes.InsertElementType(model.SelectedElementType); model.DrawingTypes = DrawingTypes.GetDrawingTypes(); return(View(model)); }