コード例 #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));
 }