public bool Update(Work_Experience entity) { link.Work_Experience_Update(entity.ID, entity.Jop_Title, entity.FK_Org, entity.Location, entity.From_Year, entity.From_Month, entity.To_Year, entity.To_Month, entity.Description, entity.FK_Member); return(link.SaveChanges() > 0); }
public Work_Experience Get(int id) { Work_Experience work = db.Work_Experience.FirstOrDefault(x => x.Id == id); return(work); }
public bool Add(Work_Experience e) { //to return entity if added or null if failed return(link.Work_Experience_Insert(e.Jop_Title, e.FK_Org, e.Location, e.From_Year, e.From_Month, e.To_Year, e.To_Month, e.Description, e.FK_Member) > 0); }