public HttpResponseMessage SaveSiteCollectionAdmin(SiteCollectionAdminModel siteCollectionAdmin) { SetupClientProcessor.SaveSiteCollectionAdmin(siteCollectionAdmin); return Request.CreateResponse(HttpStatusCode.OK,CoreMessages.SavedSuccessfully); }
/// <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); }