Example #1
0
        public async Task <SharedFolderModelBussines <int> > CreateAsync(SharedFolderModelBussines <int> model)
        {
            var added = await this._context.SharedFolders.AddAsync(
                AutoMapperConfig.Mapper.Map <SharedFolderModel <int> >(model)
                );

            await this._context.SaveChangesAsync();

            return(await this.GetByIdAsync(added.Entity.Id));
        }
Example #2
0
 public Task <SharedFolderModelBussines <int> > UpdateAsync(int id, SharedFolderModelBussines <int> model)
 {
     throw new NotImplementedException();
 }