public ActionResult Edit(IFormCollection collection)
        {
            try
            {
                _jobsWebRepository.Update(int.Parse(collection["jobTitleId"]), new JobTitle()
                {
                    name = collection["name"]
                });

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }
 public void Put(int id, [FromBody] JobTitle value)
 {
     _jobsWebRepository.Update(id, value).Wait();
 }