Adding the photo in WSP Active Directory users. part 1
This commit is contained in:
parent
2d1d464c43
commit
642890f4dc
5 changed files with 136 additions and 1 deletions
|
@ -33,6 +33,7 @@ using System.Web.Services.Protocols;
|
|||
using System.Collections.Generic;
|
||||
using WebsitePanel.Providers;
|
||||
using WebsitePanel.Providers.HostedSolution;
|
||||
using WebsitePanel.Providers.ResultObjects;
|
||||
using WebsitePanel.Server.Utils;
|
||||
using Microsoft.Web.Services3;
|
||||
using WebsitePanel.Providers.Common;
|
||||
|
@ -1389,6 +1390,46 @@ namespace WebsitePanel.Server
|
|||
|
||||
#endregion
|
||||
|
||||
#region Picture
|
||||
|
||||
[WebMethod, SoapHeader("settings")]
|
||||
public ResultObject SetPicture(string accountName, byte[] picture)
|
||||
{
|
||||
ResultObject res = null;
|
||||
try
|
||||
{
|
||||
LogStart("SetPicture");
|
||||
res = ES.SetPicture(accountName, picture);
|
||||
LogEnd("SetPicture");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogError("SetPicture", ex);
|
||||
throw;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
[WebMethod, SoapHeader("settings")]
|
||||
public BytesResult GetPicture(string accountName)
|
||||
{
|
||||
BytesResult res = null;
|
||||
try
|
||||
{
|
||||
LogStart("GetPicture");
|
||||
res = ES.GetPicture(accountName);
|
||||
LogEnd("SetPicture");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogError("GetPicture", ex);
|
||||
throw;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
protected void LogStart(string func)
|
||||
{
|
||||
Log.WriteStart("'{0}' {1}", ProviderSettings.ProviderName, func);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue