public void UpdateRequestStatus(BO.RequestStatus status, int key)
 {
     try
     {
         dal.UpdateRequestStatus(key, (DO.RequestStatus)status);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
예제 #2
0
        public void UpdateRequestStatus(BO.RequestStatus status, int key)
        {
            GuestRequest Request = Converters.Conv_DO_To_BO(dal.GetGuestRequest(key));

            if (Request != null && Request.Status != RequestStatus.OPEN)
            {
                throw new Exception("the update is not succeded - olrady sended offers");
            }
            try
            {
                dal.UpdateRequestStatus(key, (DO.RequestStatus)status);
            }
            catch (Exception e)
            {
                throw e;
            }
        }