public string Save(User userLogged)
        {
            if (ID == 0)
            {
                int idUserLpu;
                int.TryParse(_provider.Insert("UserLPU", ID, _user.ID, _lpuRR.ID, _sdiv, userLogged.ID), out idUserLpu);
                ID = idUserLpu;

                UserLpuRRList userLpuRRList = UserLpuRRList.GetUniqueInstance();
                userLpuRRList.Add(this);

                return("1");
            }
            else
            {
                return(_provider.Update("UserLPU", ID, _user.ID, YearBegin, YearEnd));
            }
        }
        private bool IsLpuUsed(LpuRR lpuRR)
        {
            UserLpuRRList userLpuRRList = UserLpuRRList.GetUniqueInstance();

            return(userLpuRRList.IsInList(lpuRR, DateTime.Today.Year));
        }
        private bool IsUserLpu(LpuRR lpuRR, User user)
        {
            UserLpuRRList userLpuRRList = UserLpuRRList.GetUniqueInstance();

            return(userLpuRRList.IsInList(lpuRR, user));
        }