public void AddJob(string name, string topik, DAL.Concrete.Type type, int salary, string info, string path, User user, City newCity, string position, string numberofemp)
        {
            Job job = new Job
            {
                Name              = name,
                Type              = type,
                Topik             = topik,
                Salary            = salary,
                Info              = info,
                ImgPath           = path,
                User              = user,
                City              = newCity,
                YourPosition      = position,
                NumberOfEmployees = numberofemp
            };

            using (Model1 m1 = new Model1())
            {
                m1.Jobs.Add(job);
                m1.SaveChanges();
            }
        }
Beispiel #2
0
 public void AddJob(string name, DAL.Concrete.Type type, int salary, string info, string path, User user)
 {
     throw new NotImplementedException();
 }