BAL.Manager.TariffExManager.EnableTariff C# (CSharp) Method

EnableTariff() public method

public EnableTariff ( int id ) : bool
id int
return bool
        public bool EnableTariff(int id)
        {
            try
            {
                var tariffDb = uOW.TariffExRepo.GetByID(id);
                tariffDb.Status = Common.Enum.TariffExStatus.Active;
                uOW.Save();
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }