public void Delete(Location location)
        {
            CrudFactory.Delete(location);
            var valueList = new ValueListSelect
            {
                IdList      = "Location",
                Value       = location.IdLocation.ToString(),
                Description = location.Name
            };

            VLCrud.Delete(valueList);
        }
Beispiel #2
0
        public void DeleteFineType(FineType fineType)
        {
            try
            {
                CrudFactory.DeleteFineType(fineType);

                var valueList = new ValueListSelect
                {
                    IdList      = "FineType",
                    Value       = fineType.IdType.ToString(),
                    Description = fineType.TypeName
                };
                VLCrud.Delete(valueList);
            }
            catch (Exception ex)
            {
                ExceptionManager.GetInstance().Process(ex);
            }
        }