コード例 #1
0
        public async Task <ActionResult> Edit(Guid jobid, [Bind("JobId,Description,ExecutionDomain")] Job Job)
        {
            try
            {
                if (jobid == Job.JobId)
                {
                    await _JobsService.EditAsync(Job);

                    return(RedirectToAction(nameof(Index)));
                }
                return(View());
            }
            catch
            {
                return(View());
            }
        }