public async Task <IActionResult> PutScrapeRun(int id, ScrapeRun scrapeRun)
        {
            if (id != scrapeRun.Id)
            {
                return(BadRequest());
            }

            _context.Entry(scrapeRun).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!ScrapeRunExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
示例#2
0
        public async Task <IActionResult> PutWork(int id, Work work)
        {
            if (id != work.WorkId)
            {
                return(BadRequest());
            }

            _context.Entry(work).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!WorkExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutPersonalInformation(int id, PersonalInformation personalInformation)
        {
            if (id != personalInformation.PersonalInformationId)
            {
                return(BadRequest());
            }

            _context.Entry(personalInformation).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!PersonalInformationExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutProject(int id, Project project)
        {
            if (id != project.ProjectId)
            {
                return(BadRequest());
            }

            _context.Entry(project).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!ProjectExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
示例#5
0
 public ActionResult Edit([Bind(Include = "ID,Name,Date,Address,Nationality,Phone,Mail,Objective,WhatIDo")] AboutMe aboutMe)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aboutMe).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aboutMe));
 }
示例#6
0
 public ActionResult Edit([Bind(Include = "ID,StartDate,StopDate,JobName,CompanyName,Where,Explanation")] Experiance experiance)
 {
     if (ModelState.IsValid)
     {
         db.Entry(experiance).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(experiance));
 }
 public ActionResult Edit([Bind(Include = "ID,StartDate,StopDate,Name,Number,Where,Explanation")] Certificated certificated)
 {
     if (ModelState.IsValid)
     {
         db.Entry(certificated).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(certificated));
 }
示例#8
0
 public ActionResult Edit([Bind(Include = "ID,Address,Number")] Contact contact)
 {
     if (ModelState.IsValid)
     {
         db.Entry(contact).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(contact));
 }
示例#9
0
 public ActionResult Edit([Bind(Include = "ID,SkillName,IsBest,Match,Level")] Skill skill)
 {
     if (ModelState.IsValid)
     {
         db.Entry(skill).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(skill));
 }
示例#10
0
 public ActionResult Edit([Bind(Include = "ID,Name,JobFirstName,JobLastName,Introduction")] Entery entery)
 {
     if (ModelState.IsValid)
     {
         db.Entry(entery).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(entery));
 }
示例#11
0
 public ActionResult Edit([Bind(Include = "ID,StartDate,StopDate,IsContinue,SchoolName,Departmant,Where,Explanation")] Education education)
 {
     if (ModelState.IsValid)
     {
         db.Entry(education).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(education));
 }