public void AddEmployee(ApiEmployeeClientResponseModel item) { if (!this.Employees.Any(x => x.Id == item.Id)) { this.Employees.Add(item); } }
public virtual ApiEmployeeClientRequestModel MapClientResponseToRequest( ApiEmployeeClientResponseModel response) { var request = new ApiEmployeeClientRequestModel(); request.SetProperties( response.FirstName, response.IsSalesPerson, response.IsShipper, response.LastName); return(request); }
public virtual ApiEmployeeClientResponseModel MapClientRequestToResponse( int id, ApiEmployeeClientRequestModel request) { var response = new ApiEmployeeClientResponseModel(); response.SetProperties(id, request.FirstName, request.IsSalesPerson, request.IsShipper, request.LastName); return(response); }
public void SetEmployeeIdNavigation(ApiEmployeeClientResponseModel value) { this.EmployeeIdNavigation = value; }