public void AddUnitOfficer(ApiUnitOfficerClientResponseModel item) { if (!this.UnitOfficers.Any(x => x.Id == item.Id)) { this.UnitOfficers.Add(item); } }
public virtual ApiUnitOfficerClientRequestModel MapClientResponseToRequest( ApiUnitOfficerClientResponseModel response) { var request = new ApiUnitOfficerClientRequestModel(); request.SetProperties( response.OfficerId, response.UnitId); return(request); }
public virtual ApiUnitOfficerClientResponseModel MapClientRequestToResponse( int id, ApiUnitOfficerClientRequestModel request) { var response = new ApiUnitOfficerClientResponseModel(); response.SetProperties(id, request.OfficerId, request.UnitId); return(response); }