Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class ContactsController

Inheritance
System.Object
ContactsController
Namespace: EPiServer.Commerce.UI.Admin.Customers
Assembly: EPiServer.Commerce.UI.Admin.dll
Version: 14.26.0
Syntax
public class ContactsController : Controller

Constructors

ContactsController(ICustomerService)

Declaration
public ContactsController(ICustomerService customerService)
Parameters
Type Name Description
ICustomerService customerService

Methods

AddOrUpdate(ContactModel)

Declaration
public ActionResult AddOrUpdate(ContactModel model)
Parameters
Type Name Description
ContactModel model
Returns
Type Description
Microsoft.AspNetCore.Mvc.ActionResult

CreateCustomerAccount(CustomerAccountViewModel)

Declaration
public Task<ActionResult> CreateCustomerAccount(CustomerAccountViewModel account)
Parameters
Type Name Description
CustomerAccountViewModel account
Returns
Type Description
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult>

Delete(List<String>)

Declaration
public ActionResult Delete(List<string> contactIds)
Parameters
Type Name Description
System.Collections.Generic.List<System.String> contactIds
Returns
Type Description
Microsoft.AspNetCore.Mvc.ActionResult

DownloadExportedFile(String)

Declaration
public ActionResult DownloadExportedFile(string exportedFileName)
Parameters
Type Name Description
System.String exportedFileName
Returns
Type Description
Microsoft.AspNetCore.Mvc.ActionResult

Export(ContactExportModel)

Declaration
public ActionResult Export(ContactExportModel model)
Parameters
Type Name Description
ContactExportModel model
Returns
Type Description
Microsoft.AspNetCore.Mvc.ActionResult

Get(String)

Declaration
public ActionResult Get(string contactId)
Parameters
Type Name Description
System.String contactId
Returns
Type Description
Microsoft.AspNetCore.Mvc.ActionResult

GetCustomerAccountByContactIdAsync(String)

Declaration
public Task<ActionResult> GetCustomerAccountByContactIdAsync(string contactId)
Parameters
Type Name Description
System.String contactId
Returns
Type Description
System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ActionResult>

List(String, SortingElementType, Int32, Int32)

Declaration
public ActionResult List(string sortField, SortingElementType sortType, int startIndex, int recordsToRetrieve)
Parameters
Type Name Description
System.String sortField
SortingElementType sortType
System.Int32 startIndex
System.Int32 recordsToRetrieve
Returns
Type Description
Microsoft.AspNetCore.Mvc.ActionResult

Search(SearchContactModel)

Declaration
public ActionResult Search(SearchContactModel model)
Parameters
Type Name Description
SearchContactModel model
Returns
Type Description
Microsoft.AspNetCore.Mvc.ActionResult