public Models.Lookup.PenaltyTypeModel GetPenaltyTypeByID(int PenaltyTypeID)
        {
            BusinessLogic.Lookup.PenaltyTypeManager  PenaltyTypeManager = new BusinessLogic.Lookup.PenaltyTypeManager();
            BusinessEntity.Lookup.PenalityTypeEntity PenaltyType        = PenaltyTypeManager.GetPenaltyTypeByID(PenaltyTypeID);

            return(new Models.Lookup.PenaltyTypeModel(PenaltyType));
        }
        public List <Models.Lookup.PenaltyTypeModel> GetPenaltyTypes()
        {
            BusinessLogic.Lookup.PenaltyTypeManager PenaltyTypeManager = new BusinessLogic.Lookup.PenaltyTypeManager();

            List <BusinessEntity.Lookup.PenalityTypeEntity> PenaltyTypes      = PenaltyTypeManager.GetPenaltyTypes();
            List <Models.Lookup.PenaltyTypeModel>           PenaltyTypeModels = new List <Models.Lookup.PenaltyTypeModel>();

            foreach (BusinessEntity.Lookup.PenalityTypeEntity PenaltyType in PenaltyTypes)
            {
                PenaltyTypeModels.Add(new Models.Lookup.PenaltyTypeModel(PenaltyType));
            }

            return(PenaltyTypeModels);
        }
        public BusinessEntity.Result DeletePenaltyType(Models.Lookup.PenaltyTypeModel PenaltyType)
        {
            BusinessEntity.Result result = new BusinessEntity.Result();
            try
            {
                BusinessLogic.Lookup.PenaltyTypeManager PenaltyTypeManager = new BusinessLogic.Lookup.PenaltyTypeManager();
                result = PenaltyTypeManager.DeletePenaltyType(PenaltyType.MapToEntity <BusinessEntity.Lookup.PenalityTypeEntity>());

                return(result);
            }
            catch (Exception ex)
            {
                result.Status  = false;
                result.Message = "PenaltyType delete failed.";

                return(result);
            }
        }