示例#1
0
 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);
        }
示例#4
0
 public void SetEmployeeIdNavigation(ApiEmployeeClientResponseModel value)
 {
     this.EmployeeIdNavigation = value;
 }