Exemple #1
0
        public async Task <CommonResponce> GetClassroomByRefID(string RefID)
        {
            bool isValid    = true;
            var  oClassroom = await _DBClassroomRepository.GetClassroomByRefID(RefID);

            if (oClassroom == null)
            {
                isValid = false;
            }
            CommonResponce result = new CommonResponce {
                Stat = isValid, StatusMsg = (isValid ? "" : "Invalid Reference Id"), StatusObj = oClassroom
            };

            return(result);
        }