public void AddLessonStatus(ApiLessonStatusResponseModel item) { if (!this.LessonStatus.Any(x => x.Id == item.Id)) { this.LessonStatus.Add(item); } }
public virtual ApiLessonStatusRequestModel MapResponseToRequest( ApiLessonStatusResponseModel response) { var request = new ApiLessonStatusRequestModel(); request.SetProperties( response.Name, response.StudioId); return(request); }
public virtual ApiLessonStatusResponseModel MapRequestToResponse( int id, ApiLessonStatusRequestModel request) { var response = new ApiLessonStatusResponseModel(); response.SetProperties(id, request.Name, request.StudioId); return(response); }