Example #1
0
        public async Task <CommonResponce> DeleteClassStudyMat(ClassStudyMeterialsBM model)
        {
            CommonResponce result = new CommonResponce();

            try
            {
                result.Stat = await _DBClassroomRepository.DeleteClassStudyMat(model);

                if (result.Stat)
                {
                    result.StatusMsg = "Successfully delete Class meterials";
                }
                else
                {
                    result.StatusMsg = "Fail to delete Class meterials";
                }
            }
            catch (Exception ex) { result.Stat = false; result.StatusMsg = ex.Message + " Failed to delete Class meterials"; }
            return(result);
        }