public UpdateProcess ( long ProcessID, string ProcessDescription, string ProcessSummary, int ModifiedBy, int OwnedBy, int AtulProcessStatusID, int DeadLineOffset, long SubjectServiceProviderID, string ScopeID ) : bool | ||
ProcessID | long | |
ProcessDescription | string | |
ProcessSummary | string | |
ModifiedBy | int | |
OwnedBy | int | |
AtulProcessStatusID | int | |
DeadLineOffset | int | |
SubjectServiceProviderID | long | |
ScopeID | string | |
return | bool |
public bool UpdateProcess(string ProcessID, string ProcessDescription, string ProcessSummary, int ModifiedBy, int OwnedBy, int AtulProcessStatusID, int DeadLineOffset, string SubjectServiceProviderID, string ScopeID) { bool success = false; long AtulProcessID = Convert.ToInt64(ProcessID); long? SSID = null; if (SubjectServiceProviderID.Trim() != string.Empty) { SSID = Convert.ToInt64(SubjectServiceProviderID); } AtulBusinessLogic adb = new AtulBusinessLogic(); Process p = adb.GetProcessBySummary(ProcessSummary); if (p == null || p.AtulProcessID == AtulProcessID) { success = adb.UpdateProcess(AtulProcessID, ProcessDescription, ProcessSummary, ModifiedBy, OwnedBy, AtulProcessStatusID, DeadLineOffset, SSID, ScopeID); } return success; }