public bool editDelegate(string EmpID, string DeptID, string StartDate, string EndDate, string Status)
 {
     BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController();
     if (BL.editDelegate(EmpID, DeptID, StartDate, EndDate, Status))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return(true);
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotAcceptable;
         return(false);
     }
 }
 public bool deleteDelegate(string DelegateSN)
 {
     BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController();
     if (BL.deleteDelegate(DelegateSN))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return(true);
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotAcceptable;
         return(false);
     }
 }
コード例 #3
0
 public bool editDelegate(string EmpID, string DeptID, string StartDate, string EndDate, string Status)
 {
     BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController();
     if (BL.editDelegate(EmpID, DeptID,StartDate,EndDate,Status))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotAcceptable;
         return false;
     }
 }
コード例 #4
0
 public bool deleteDelegate(string DelegateSN)
 {
     BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController();
     if (BL.deleteDelegate(DelegateSN))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotAcceptable;
         return false;
     }
 }
        public List <Model.Delegate> getDelegate(string DeptID)
        {
            BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController();

            return(BL.getDelegate(DeptID));
        }
コード例 #6
0
        public List<Model.Delegate> getDelegate(string DeptID)
        {
            BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController();

            return BL.getDelegate(DeptID);
        }