public async Task <SharedFileModelBussines <int> > CreateAsync(SharedFileModelBussines <int> model) { var added = await this._context.SharedFiles.AddAsync( AutoMapperConfig.Mapper.Map <SharedFileModel <int> >(model) ); await this._context.SaveChangesAsync(); return(await this.GetByIdAsync(added.Entity.Id)); }
public Task <SharedFileModelBussines <int> > UpdateAsync(int id, SharedFileModelBussines <int> model) { throw new NotImplementedException(); }