public async Task <Activity> CreateNewActivity(Activity act) { var returnVal = await _repository.CreateAsync(act); JObject json = JObject.Parse(returnVal.ToString()); Activity activ = json.ToObject <Activity>(); return(activ); }
public async Task <DTOClass> CreateNewDtoClass(DTOClass dto) { return(await repository.CreateAsync(dto)); }
public async Task <Lesson> CreateLesson(Lesson dataToBeInserted) { return(await _repository.CreateAsync(dataToBeInserted)); }
public async Task <AssetAMS> CreateAssetAMS(AssetAMS dataToBeInserted) { return(await _repository.CreateAsync(dataToBeInserted)); }