示例#1
0
        public bool UpdateInvestmentType(long id, InvestmentTypePoco investmenttype)
        {
            var isupdated = _repository.UpdateInvestmentType(id, investmenttype);
            if (isupdated)
            {
                return true;

            }
            else
            {
                return false;
            }
        }
示例#2
0
        public bool UpdateInvestmentType(long id, InvestmentTypePoco investmenttype)
        {
            try
            {
                _db.Entry(investmenttype).State = System.Data.Entity.EntityState.Modified;
                _db.SaveChanges();
                return true;

            }
            catch (Exception)
            {

                return false;
            }
        }
示例#3
0
 public void CreateInvestmentType(InvestmentTypePoco investmenttype)
 {
     _db.InvestmentTypes.Add(investmenttype);
     _db.SaveChanges();
 }
示例#4
0
 public void CreateInvestmentType(InvestmentTypePoco investmenttype)
 {
     _repository.CreateInvestmentType(investmenttype);
 }