added editorconfig and formatted code

This commit is contained in:
hydrant
2019-07-17 19:52:55 +02:00
parent ada071cc93
commit 123ab7d07b
146 changed files with 10839 additions and 10715 deletions

View File

@@ -8,14 +8,14 @@ using System.Text;
namespace ReallifeGamemode.Server.Extensions
{
static class HouseExtensions
static class HouseExtensions
{
public static House Refresh(this House house)
{
public static House Refresh(this House house)
{
using(var dbContext = new DatabaseContext())
{
return dbContext.Houses.Where(h => h.Id == house.Id).Include(h => h.Owner).FirstOrDefault();
}
}
using (var dbContext = new DatabaseContext())
{
return dbContext.Houses.Where(h => h.Id == house.Id).Include(h => h.Owner).FirstOrDefault();
}
}
}
}