public async Task <ActionResult> Post([FromBody] TModel entity)
 {
     return(await base.HandlePost(entity, (id) => _repository.Exists(id), (model) => _repository.Add(model)));
 }
示例#2
0
 public void SaveRant(Rant rant)
 {
     _readWriteRepository.Add(rant);
 }
 public void Add(VirtualMachine virtualMachine)
 {
     _virtualMachineRepository.Add(virtualMachine);
 }