public static LexileDto lexDto(LexileDump lex) { LexileDto lexileDto = new LexileDto(); lexileDto.Title = lex.title; lexileDto.Author = lex.author; lexileDto.Isbn = lex.isbn; lexileDto.Isbn13 = lex.isbn13; lexileDto.LexScore = short.Parse(lex.lexile); lexileDto.PageCount = (short?)short.Parse(lex.pages); lexileDto.LexUpdate = Convert.ToDateTime(lex.lastupdated); return lexileDto; }
public static StandardResult postNewLexile(LexileDump lexdumprow) { LexileDto lexileDto = lexDto(lexdumprow); return postNewLexile(lexileDto); }