Ejemplo n.º 1
0
 public void AddOfficer(ApiOfficerClientResponseModel item)
 {
     if (!this.Officers.Any(x => x.Id == item.Id))
     {
         this.Officers.Add(item);
     }
 }
Ejemplo n.º 2
0
        public virtual ApiOfficerClientRequestModel MapClientResponseToRequest(
            ApiOfficerClientResponseModel response)
        {
            var request = new ApiOfficerClientRequestModel();

            request.SetProperties(
                response.Badge,
                response.Email,
                response.FirstName,
                response.LastName,
                response.Password);
            return(request);
        }
Ejemplo n.º 3
0
        public virtual ApiOfficerClientResponseModel MapClientRequestToResponse(
            int id,
            ApiOfficerClientRequestModel request)
        {
            var response = new ApiOfficerClientResponseModel();

            response.SetProperties(id,
                                   request.Badge,
                                   request.Email,
                                   request.FirstName,
                                   request.LastName,
                                   request.Password);
            return(response);
        }
 public void SetOfficerIdNavigation(ApiOfficerClientResponseModel value)
 {
     this.OfficerIdNavigation = value;
 }