public static void DoChangeResignStatus(int id, string status) { ResignRequest resignReq = ConnectionController.GetInstance().ResignRequests.Where(x => x.Id.Equals(id)).FirstOrDefault(); resignReq.ResignResponse = status; ConnectionController.GetInstance().SaveChanges(); }
public static void DoRequestResign(String startTime, String reason) { ResignRequest resignPermission = new ResignRequest(); resignPermission.EmployeeId = ActiveUserController.GetActiveEmployee().Id; resignPermission.ResignLetter = reason; resignPermission.ResignDate = Convert.ToDateTime(startTime); resignPermission.ResignResponse = "Waiting"; ConnectionController.GetInstance().ResignRequests.Add(resignPermission); ConnectionController.GetInstance().SaveChanges(); }