Esempio n. 1
0
 public void AddEventStudent(ApiEventStudentClientResponseModel item)
 {
     if (!this.EventStudents.Any(x => x.Id == item.Id))
     {
         this.EventStudents.Add(item);
     }
 }
Esempio n. 2
0
        public virtual ApiEventStudentClientRequestModel MapClientResponseToRequest(
            ApiEventStudentClientResponseModel response)
        {
            var request = new ApiEventStudentClientRequestModel();

            request.SetProperties(
                response.EventId,
                response.StudentId);
            return(request);
        }
Esempio n. 3
0
        public virtual ApiEventStudentClientResponseModel MapClientRequestToResponse(
            int id,
            ApiEventStudentClientRequestModel request)
        {
            var response = new ApiEventStudentClientResponseModel();

            response.SetProperties(id,
                                   request.EventId,
                                   request.StudentId);
            return(response);
        }