public void GetRoosterWiseRecords(List<string> roosterNumbers)
 {
     RoasterManagementDLL objRoasterManagementDLL = null;
     try
     {
         objRoasterManagementDLL = new RoasterManagementDLL();
         objRoasterManagementDLL.GetRoosterWiseRecords(roosterNumbers);
     }
     catch (Exception ex)
     {
         throw;
     }
     finally
     {
         objRoasterManagementDLL = null;
     }
 }
        public List<Roster> GetRoasterDetail(string Prefix)
        {
            RoasterManagementDLL objRoasterManagementDLL = null;

            List<Roster> RosterDetail = null;
            try
            {
                objRoasterManagementDLL = new RoasterManagementDLL();

            RosterDetail= objRoasterManagementDLL.GetRoasterDetail(Prefix);

            }

            catch (Exception ex)
            {
                objRoasterManagementDLL = null;
            }

            return RosterDetail;
        }
        public bool CreateRoasterNo(string Prifix, out string roosternumber)
        {
            bool isFlag = false;
            RoasterManagementDLL objRoasterManagementDLL = null;
            string roosternumberr = string.Empty;
            try
            {
                objRoasterManagementDLL = new RoasterManagementDLL();

                isFlag = objRoasterManagementDLL.CreateRoaster(Prifix, out roosternumberr);

            }
            catch(Exception ex)
            {
                objRoasterManagementDLL = null;
                throw ex;

            }
            roosternumber = roosternumberr;
            return isFlag;
        }
 public bool InsertRoasterDetail(RoasterManagement RoasterManagement)
 {
     bool isFlag = false;
     RoasterManagementDLL objRoasterManagementDLL = null;
     try
     {
         objRoasterManagementDLL = new RoasterManagementDLL();
         isFlag = objRoasterManagementDLL.InsertRosterDetail(RoasterManagement);
     }
     catch(Exception ex)
     {
         throw;
     }
     finally
     {
         objRoasterManagementDLL = null;
     }
     return isFlag;
 }