public void Create(OccupationSet _occupation) { using (var db = new osu2008Entities1()) { var occupation = _occupation; db.OccupationSet.Add(_occupation); db.SaveChanges(); } }
public MoreJobsViewModel() : base(PageId.OccupationSearch, "Enter your job title") { Occupations = new OccupationSet(); }
public OccupationModel(OccupationSet occupation) { this.OccupationId = occupation.OccupationId; this.Name = occupation.Name; }
public void Update(OccupationSet _occupation) { throw new NotImplementedException(); }