public void Insert(EmployeeViewModel model) { _context.Employee.Add(new Employee { Name = model.Name, LastName = model.LastName, Gender = model.Gender, CreateDate = DateTime.Now }); _context.SaveChanges(); }
public void Insert(RequestResponseLog entity) { try { _context.RequestResponse.Add(entity); _context.SaveChanges(); } catch (Exception ex) { throw; } }