コード例 #1
0
        // delete exercise from planned routine
        public Boolean DeletePlanned(ExerciseShow exerciseShow)
        {
            Planned toDelPlanned = ReadRoutinePlanned(exerciseShow);

            if (DataLinkLayer.DBdelete <Planned>(toDelPlanned) > 0)
            {
                return(true);
            }

            return(false);
        }
コード例 #2
0
        public Boolean DeletePlanned(Planned p)
        {
            Int32 count = DataLinkLayer.DBdelete <Planned>(p);

            if (count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #3
0
        public Int32 DeleteProfile(Int32 id)
        {
            Profile profile = ReadProfileId(id);

            return(DataLinkLayer.DBdelete(profile));
        }