public bool UpdateInvestmentType(long id, InvestmentTypePoco investmenttype) { var isupdated = _repository.UpdateInvestmentType(id, investmenttype); if (isupdated) { return true; } else { return false; } }
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; } }
public void CreateInvestmentType(InvestmentTypePoco investmenttype) { _db.InvestmentTypes.Add(investmenttype); _db.SaveChanges(); }
public void CreateInvestmentType(InvestmentTypePoco investmenttype) { _repository.CreateInvestmentType(investmenttype); }