public void Update(int Id,string Application,int StepX,string Action,string ActionParameter,bool TerminalStep,string Status,int? NextAction,int? PreviousAction) { Workflow item = new Workflow(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.Application = Application; item.StepX = StepX; item.Action = Action; item.ActionParameter = ActionParameter; item.TerminalStep = TerminalStep; item.Status = Status; item.NextAction = NextAction; item.PreviousAction = PreviousAction; item.Save(UserName); }