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);
     }
 }
 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;
     }
 }
        public List <Model.Delegate> getDelegate(string DeptID)
        {
            BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController();

            return(BL.getDelegate(DeptID));
        }
        public List<Model.Delegate> getDelegate(string DeptID)
        {
            BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController();

            return BL.getDelegate(DeptID);
        }