//common lib public bool Insert(footballer_type entity) { try { db.footballer_type.Add(entity); db.SaveChanges(); return(true); } catch (Exception) { return(false); } }
public bool Update(footballer_type entity) { try { var info = db.footballer_type.Find(entity.id); info.name = entity.name; db.SaveChanges(); return(true); } catch (Exception) { return(false); } }