public static bool Save(Issues model) { bool result; using (HelpDeskApfEntities context = new HelpDeskApfEntities()) { try { context.ISSUES.Add(model.ToTable()); context.SaveChanges(); result = true; } catch (Exception) { result = false; } } return(result); }