fixes the db migration
This commit is contained in:
parent
13fde95882
commit
72e124d1a1
11 changed files with 100 additions and 71 deletions
|
|
@ -20,7 +20,6 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
using System.Text;
|
||||
using Yavsc.Abstract.Manage;
|
||||
using Yavsc.Helpers;
|
||||
|
||||
|
|
|
|||
|
|
@ -63,14 +63,10 @@ namespace Yavsc.Controllers
|
|||
}
|
||||
|
||||
// GET: Git/Details/5
|
||||
public async Task<IActionResult> Details(string id)
|
||||
public async Task<IActionResult> Details(long id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
|
||||
GitRepositoryReference gitRepositoryReference = await _context.GitRepositoryReference.SingleAsync(m => m.Path == id);
|
||||
GitRepositoryReference gitRepositoryReference = await _context.GitRepositoryReference.SingleAsync(m => m.Id == id);
|
||||
if (gitRepositoryReference == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
|
|
@ -103,14 +99,9 @@ namespace Yavsc.Controllers
|
|||
}
|
||||
|
||||
// GET: Git/Edit/5
|
||||
public async Task<IActionResult> Edit(string id)
|
||||
public async Task<IActionResult> Edit(long id)
|
||||
{
|
||||
if (id == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
|
||||
GitRepositoryReference gitRepositoryReference = await _context.GitRepositoryReference.SingleAsync(m => m.Path == id);
|
||||
GitRepositoryReference gitRepositoryReference = await _context.GitRepositoryReference.SingleAsync(m => m.Id == id);
|
||||
if (gitRepositoryReference == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ namespace Yavsc.Controllers
|
|||
|
||||
ViewBag.Status = typeof(Yavsc.QueryStatus).CreateSelectListItems(null);
|
||||
ViewBag.RepositoryItems = _context.GitRepositoryReference.CreateSelectListItems<GitRepositoryReference>(
|
||||
u => u.Path, u => u.ToString());
|
||||
u => u.Id.ToString(), u => u.ToString());
|
||||
|
||||
return View();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue