16 lines
507 B
Java
16 lines
507 B
Java
package eu.eudat.managers;
|
|
|
|
import eu.eudat.entities.Researcher;
|
|
import eu.eudat.services.ApiContext;
|
|
|
|
/**
|
|
* Created by ikalyvas on 2/5/2018.
|
|
*/
|
|
public class ResearcherManager {
|
|
|
|
public static Researcher create(ApiContext apiContext, eu.eudat.models.researcher.Researcher researcher) throws Exception {
|
|
Researcher researcherEntity = researcher.toDataModel();
|
|
return apiContext.getOperationsContext().getDatabaseRepository().getResearcherDao().createOrUpdate(researcherEntity);
|
|
}
|
|
}
|