/// <summary> /// Set request details for Manager or Supervisor. /// </summary> /// <param name="reqId">Request Id of request</param> public void SetReqDetails(int reqId) { var request = Application.Filter != null? RequestsRepository.GetAllRequests().FirstOrDefault(u => u.RequestId.Equals(reqId)) : RequestsRepository.Requests.FirstOrDefault(u => u.RequestId.Equals(reqId)); if (request == null) { return; } RequestId = request.RequestId; DbStatusId = request.StatusId; RequestDate = request.CreatedOn; RequestStatus = request.Status; RequestorName = GetUserName(request.RequestorId); UpdatorName = GetUserName(request.UpdatorId); UpdateDate = request.UpdatedOn; Shelters = GetShelters(reqId); Items = GetItems(reqId); Statuses = RequestsRepository.GetStatusList(); }