public ProductInvestmentInfo Save(ProductInvestmentInfo model) { var modelObj = _context.ProductInvestmentInfo.Add(model).Entity; _context.SaveChanges(); return(modelObj); }
public ProductInvestmentInfo Edit(ProductInvestmentInfo model) { _context.Entry(model).State = EntityState.Modified; _context.SaveChanges(); return(model); }