public ActionResult Add(flowdefmodellist model) { ViewBag.message = model.id_flowDefinition; flowdef.id_flowDefinition = model.id_flowDefinition; flow.id_flowdefinition = flowdef; flow.id_position = operation.GetPositionidFlow(model.id_flowDefinition); flow.id_user = user; flow.Name = model.name; if (flow.id_flowdefinition != null && flow.id_position != null && flow.id_user != null && flow.Name != null) { operation.AddElement <Flow>(flow); } return(View()); }