Server naming fixes and cleanup

Server is now completely cleaned up and without warnings
This commit is contained in:
Pavel Vesely
2020-03-15 09:38:37 +01:00
parent ab3f0853a7
commit 5b3feaf26f
92 changed files with 1223 additions and 1273 deletions

View File

@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Oqtane.Models;
namespace Oqtane.Repository
@ -38,9 +38,9 @@ namespace Oqtane.Repository
return _db.User.Find(userId);
}
public User GetUser(string Username)
public User GetUser(string username)
{
return _db.User.Where(item => item.Username == Username).FirstOrDefault();
return _db.User.Where(item => item.Username == username).FirstOrDefault();
}
public void DeleteUser(int userId)