public int GetWorkStatusIdCodeFromMap(WorkStatus status) { int statusId; WorkStatusMap.TryGetValue(status, out statusId); return(statusId); }
private void InitialiseWorkStatusMap() { WorkStatusMap.Add(WorkStatus.Created, 1); WorkStatusMap.Add(WorkStatus.Processing, 2); WorkStatusMap.Add(WorkStatus.Completed, 3); WorkStatusMap.Add(WorkStatus.Errored, 4); }