예제 #1
0
        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);
        }
예제 #2
0
 public async Task <DTOClass> CreateNewDtoClass(DTOClass dto)
 {
     return(await repository.CreateAsync(dto));
 }
예제 #3
0
 public async Task <Lesson> CreateLesson(Lesson dataToBeInserted)
 {
     return(await _repository.CreateAsync(dataToBeInserted));
 }
예제 #4
0
 public async Task <AssetAMS> CreateAssetAMS(AssetAMS dataToBeInserted)
 {
     return(await _repository.CreateAsync(dataToBeInserted));
 }