public async Task <IActionResult> Update([FromForm] int key, [FromForm] string values)
        {
            var article = await _jobAdvertsService.GetAsync(key);

            JsonConvert.PopulateObject(values, article);

            if (!TryValidateModel(article))
            {
                return(BadRequest());
            }

            await _jobAdvertsService.UpdateAsync(article);

            return(Ok(article));
        }
Example #2
0
        public async Task <IActionResult> FinanceJobDetail(int id)
        {
            var vm = await _jobadvertService.GetAsync(id);

            return(View(vm));
        }