C# Class HBS.WebApi.Controllers.CustomerController

Inheritance: ApiController
Datei anzeigen Open project: heartbeatservice/HeartbeatServiceSolution

Public Methods

Method Description
CustomerController ( ICustomerRepository repo ) : System
DeleteCustomer ( int customerId, int userId ) : bool
GetCustomer ( int customerId ) : Customer
GetCustomers ( int companyId ) : IList
GetCustomers ( int companyId, System.DateTime dob ) : IList
GetCustomers ( int companyId, string customerName ) : IList
GetCustomers ( int companyId, string customerName, System.DateTime dob ) : IList
GetCustomers ( List customer, int PageNumber, int PageSize ) : PagedList
GetCustomers ( int companyId, System.DateTime dob, int pageNumber, int pageSize ) : PagedList
GetCustomers ( int companyId, int pageNumber, int pageSize ) : PagedList
GetCustomers ( int companyId, string customerName, System.DateTime dob, int pageNumber, int pageSize ) : PagedList
GetCustomers ( int companyId, string customerName, int pageNumber, int pageSize ) : PagedList
PostCustomer ( [ customer ) : int

Private Methods

Method Description
Options ( ) : HttpResponseMessage
PutCustomerUpdate ( string id, [ customer ) : bool

Method Details

CustomerController() public method

public CustomerController ( ICustomerRepository repo ) : System
repo ICustomerRepository
return System

DeleteCustomer() public method

public DeleteCustomer ( int customerId, int userId ) : bool
customerId int
userId int
return bool

GetCustomer() public method

public GetCustomer ( int customerId ) : Customer
customerId int
return HBS.Entities.Customer

GetCustomers() public method

public GetCustomers ( int companyId ) : IList
companyId int
return IList

GetCustomers() public method

public GetCustomers ( int companyId, System.DateTime dob ) : IList
companyId int
dob System.DateTime
return IList

GetCustomers() public method

public GetCustomers ( int companyId, string customerName ) : IList
companyId int
customerName string
return IList

GetCustomers() public method

public GetCustomers ( int companyId, string customerName, System.DateTime dob ) : IList
companyId int
customerName string
dob System.DateTime
return IList

GetCustomers() public method

public GetCustomers ( List customer, int PageNumber, int PageSize ) : PagedList
customer List
PageNumber int
PageSize int
return HBS.WebApi.Models.PagedList

GetCustomers() public method

public GetCustomers ( int companyId, System.DateTime dob, int pageNumber, int pageSize ) : PagedList
companyId int
dob System.DateTime
pageNumber int
pageSize int
return HBS.WebApi.Models.PagedList

GetCustomers() public method

public GetCustomers ( int companyId, int pageNumber, int pageSize ) : PagedList
companyId int
pageNumber int
pageSize int
return HBS.WebApi.Models.PagedList

GetCustomers() public method

public GetCustomers ( int companyId, string customerName, System.DateTime dob, int pageNumber, int pageSize ) : PagedList
companyId int
customerName string
dob System.DateTime
pageNumber int
pageSize int
return HBS.WebApi.Models.PagedList

GetCustomers() public method

public GetCustomers ( int companyId, string customerName, int pageNumber, int pageSize ) : PagedList
companyId int
customerName string
pageNumber int
pageSize int
return HBS.WebApi.Models.PagedList

PostCustomer() public method

public PostCustomer ( [ customer ) : int
customer [
return int