public ResultBM GetItemType(int itemTypeId) { try { ItemTypeDAL itemTypeDal = new ItemTypeDAL(); ItemTypeBM itemTypeBm = null; ItemTypeDTO itemTypeDto = itemTypeDal.GetItemType(itemTypeId); if (itemTypeDto != null) { itemTypeBm = new ItemTypeBM(itemTypeDto); } return(new ResultBM(ResultBM.Type.OK, "Operación exitosa.", itemTypeBm)); } catch (Exception exception) { return(new ResultBM(ResultBM.Type.EXCEPTION, SessionHelper.GetTranslation("RETRIEVING_ERROR") + " " + exception.Message, exception)); } }
/// <summary> /// 按试题类别ID取试题类别 /// </summary> /// <param name="itemTypeId">题类别ID</param> /// <returns>试题类别</returns> public ItemType GetItemType(int itemTypeId) { return(dal.GetItemType(itemTypeId)); }