public bool createDelegate(string EmpID, string DeptID, string StartDate, string EndDate, string Status) { BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController(); if (BL.createDelegate(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 createDelegate(string EmpID, string DeptID, string StartDate, string EndDate, string Status) { BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController(); if (BL.createDelegate(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; } }