public StatusUpdate Map(TSKG tskg) { var status = WorkStatusEnum.Scheduled; if (tskg == TSKG.Item1) { status = WorkStatusEnum.Scheduled; } else if (tskg == TSKG.Item2) { status = WorkStatusEnum.InProgress; } else if (tskg == TSKG.Item3) { status = WorkStatusEnum.Paused; } else if (tskg == TSKG.Item4) { status = WorkStatusEnum.Completed; } else if (tskg == TSKG.Item5) { status = WorkStatusEnum.Scheduled; } return(new StatusUpdate { Status = status }); }
public StatusUpdate Map(TSKG tskg) { var status = WorkStatusEnum.Scheduled; if(tskg == TSKG.Item1) status = WorkStatusEnum.Scheduled; else if(tskg == TSKG.Item2) status = WorkStatusEnum.InProgress; else if (tskg == TSKG.Item3) status = WorkStatusEnum.Paused; else if (tskg == TSKG.Item4) status = WorkStatusEnum.Completed; else if (tskg == TSKG.Item5) status = WorkStatusEnum.Scheduled; return new StatusUpdate { Status = status }; }