mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-28 17:01:48 +03:00
Settings Page (in work)
Fixing Web hosting in Azure
This commit is contained in:
@@ -12,11 +12,16 @@ namespace MyFriendsAround.Data.BLL
|
||||
public static class FriendsRepository
|
||||
{
|
||||
public static List<Friend> GetFriends()
|
||||
{
|
||||
{
|
||||
return GetFriends(0, 50);
|
||||
}
|
||||
|
||||
public static List<Friend> GetFriends(int skip, int take)
|
||||
{
|
||||
using (MyFriendsModelContainer ctx = new MyFriendsModelContainer())
|
||||
{
|
||||
ctx.ContextOptions.ProxyCreationEnabled = false;
|
||||
List<Friend> list = ctx.Friends.ToList();
|
||||
List<Friend> list = ctx.Friends.OrderByDescending(f=> f.LastUpdated).Skip(skip).Take(take).ToList();
|
||||
list.ForEach((f) =>
|
||||
{
|
||||
SqlGeometry geom = SqlGeometry.Parse(f.LocationStr);
|
||||
@@ -59,5 +64,12 @@ namespace MyFriendsAround.Data.BLL
|
||||
return success;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool UpdatePicture(string userId, byte[] userPicture)
|
||||
{
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.SqlServer.Types, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\Libs\Sql\Microsoft.SqlServer.Types.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
|
||||
Reference in New Issue
Block a user