Esempio n. 1
0
 public HttpResponseMessage SaveSiteCollectionAdmin(SiteCollectionAdminModel siteCollectionAdmin)
 {
     SetupClientProcessor.SaveSiteCollectionAdmin(siteCollectionAdmin);
     return Request.CreateResponse(HttpStatusCode.OK,CoreMessages.SavedSuccessfully);
 }
Esempio n. 2
0
 /// <summary>
 /// SaveSite
 /// </summary>
 /// <param name="siteModel"></param>
 /// <returns></returns>
 public void SaveSiteCollectionAdmin(SiteCollectionAdminModel siteCollectionAdminModel)
 {
     ServiceResponse siteCollectionAdminResponse = _setupProxy.Execute(opt => opt.SaveSiteCollectionAdmin(siteCollectionAdminModel.UserName));
     if (siteCollectionAdminResponse.Status != ResponseStatus.Success)
         HandleError(siteCollectionAdminResponse.Status, siteCollectionAdminResponse.ResponseMessage);
 }