public bool AddShiftData(shiftinfo data)
        {
            try
            {
                using (DB_Model db = new DB_Model())
                {
                    db.shiftinfoes.Add(data);

                    db.SaveChanges();

                    return(true);
                }
            }
            catch
            {
                return(false);
            }
        }
        public bool AddUserInfo(userinfo data)
        {
            try
            {
                using (DB_Model db = new DB_Model())
                {
                    db.userinfoes.Add(data);

                    db.SaveChanges();

                    return(true);
                }
            }
            catch
            {
                return(false);
            }
        }
        public bool AddCurrentData(currentdata currentdata)
        {
            try
            {
                using (DB_Model db = new DB_Model())
                {
                    db.currentdatas.Add(currentdata);

                    db.SaveChanges();

                    return(true);
                }
            }
            catch (Exception e)
            {
                return(false);
            }
        }
        public bool AddCurrentShiftData(currentshiftdata data)
        {
            //modification needed please check current shift status if the shift have been changed please clean the data and then add new data.

            try
            {
                using (DB_Model db = new DB_Model())
                {
                    db.currentshiftdatas.Add(data);

                    db.SaveChanges();

                    return(true);
                }
            }
            catch
            {
                return(false);
            }
        }