public bool Edit(InternalInvestment obj) { try { _context.InternalInvestment.Update(obj); _context.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool Create(InternalInvestment obj) { try { obj.Id = Guid.Empty; _context.Entry(obj).State = EntityState.Modified; _context.InternalInvestment.Add(obj); _context.SaveChanges(); return(true); } catch (Exception) { return(false); } }