public Task <FormVersionCompleteModel> Handle(CreateOrUpdateFormRequest request, CancellationToken cancellationToken) { FormVersion formVersion = _mapper.Map <FormVersion>(request.ToCreateOrUpdate); if (request.isCreatingNew) { _context.FormVersions.Add(formVersion); } else { _context.Set <FormVersion>().Attach(formVersion); } _context.SaveChanges(); return(null); }