public static void SubmitRequest(int requestId, bool approved) { Data_Utilities.SetResponsibleForRequest(requestId, ""); if (approved) { Data_Utilities.SetRequestStatus(requestId, "APPROVED"); } else { Data_Utilities.SetRequestStatus(requestId, "REJECTED"); } }
private static void SubmitRequest(int requestId, int taskId, string subteam, string responsible, bool approved) { Data_Utilities.SetResponsibleForRequest(requestId, responsible); if (approved) { Data_Utilities.SetRequestStatus(requestId, "APPROVED"); Data_Utilities.SetTaskStatus(taskId, "IN PROGRESS"); Data_Utilities.SetTaskResponsible(taskId, subteam); } else { Data_Utilities.SetRequestStatus(requestId, "REJECTED"); Data_Utilities.SetTaskStatus(taskId, "CLOSED"); } }
private static void SetResponsibleForRequest(int requestId, string sendTo) { Data_Utilities.SetResponsibleForRequest(requestId, sendTo); }